Re: [Mesa-dev] RFC: Gallium support for ARB_shader_atomic_counters

2014-06-16 Thread Marek Olšák
It's only for the state tracker. Drivers don't have to be concerned about this and should just expose a fixed number of writable shader resources that can be used with all types. Marek On Tue, Jun 17, 2014 at 1:26 AM, Ilia Mirkin wrote: > On Mon, Jun 16, 2014 at 7:21 PM, Marek Olšák wrote: >> [

Re: [Mesa-dev] RFC: Gallium support for ARB_shader_atomic_counters

2014-06-16 Thread Ilia Mirkin
On Mon, Jun 16, 2014 at 7:21 PM, Marek Olšák wrote: > [Cc: Aditya] > > Aditya Avinash was interested in doing this as his first task in Mesa. Oh awesome. Actually I think someone may have mentioned this fact to me but then I forgot :) I'll look at other stuff then. > > But what you describe soun

Re: [Mesa-dev] RFC: Gallium support for ARB_shader_atomic_counters

2014-06-16 Thread Marek Olšák
[Cc: Aditya] Aditya Avinash was interested in doing this as his first task in Mesa. But what you describe sounds good. If we use set_shader_resources for atomic counter buffer objects, we should also have a plan for how we will bind shader storage buffers objects and images. I suggest we use a di

[Mesa-dev] RFC: Gallium support for ARB_shader_atomic_counters

2014-06-16 Thread Ilia Mirkin
Hello, I've been toying with the idea of adding gallium support for the atomic counters extension in gallium. Nouveau already largely supports it, so it's mostly a question of plumbing. (One piece that's missing in nouveau is _actually_ binding resources, but that can't be too difficult... I hope.