Re: [Mesa-dev] [RFC] nir: add pass to lower atomic counters to SSBO

2017-04-17 Thread Rob Clark
On Thu, Apr 13, 2017 at 11:23 AM, Rob Clark wrote: > This is equivalent to what mesa/st does in glsl_to_tgsi. For most hw > there isn't a particularly good reason to treat these differently. > > Signed-off-by: Rob Clark > --- > This is part of a larger patchset I'm working on to add SSBO and com

Re: [Mesa-dev] [RFC] nir: add pass to lower atomic counters to SSBO

2017-04-13 Thread Rob Clark
On Thu, Apr 13, 2017 at 11:44 AM, Jason Ekstrand wrote: > Nice! This may let us delete some back-end code too. I'll review later. I looked a bit at i965, and I think it could.. we may want to introduce ssbo_inc and ssbo_dec instructions so you can keep using hw inc/dec instructions (but then l

Re: [Mesa-dev] [RFC] nir: add pass to lower atomic counters to SSBO

2017-04-13 Thread Jason Ekstrand
Nice! This may let us delete some back-end code too. I'll review later. On Thu, Apr 13, 2017 at 8:23 AM, Rob Clark wrote: > This is equivalent to what mesa/st does in glsl_to_tgsi. For most hw > there isn't a particularly good reason to treat these differently. > > Signed-off-by: Rob Clark >

[Mesa-dev] [RFC] nir: add pass to lower atomic counters to SSBO

2017-04-13 Thread Rob Clark
This is equivalent to what mesa/st does in glsl_to_tgsi. For most hw there isn't a particularly good reason to treat these differently. Signed-off-by: Rob Clark --- This is part of a larger patchset I'm working on to add SSBO and compute shader support in mesa/st glsl_to_nir path, and compute/SS