Re: [Mesa-dev] [PATCH v3 44/48] nir, intel/compiler: Use a fixed subgroup size

2017-10-30 Thread Iago Toral
On Wed, 2017-10-25 at 16:26 -0700, Jason Ekstrand wrote: > The GL_ARB_shader_ballot spec says that gl_SubGroupSizeARB is > declared > as a uniform. I was a bit surprised that we can change this so easily, then realized that the name for this built-in is a bit misleading since this doesn't really r

[Mesa-dev] [PATCH v3 44/48] nir, intel/compiler: Use a fixed subgroup size

2017-10-25 Thread Jason Ekstrand
The GL_ARB_shader_ballot spec says that gl_SubGroupSizeARB is declared as a uniform. This means that it cannot change across an invocation such as a draw call or a compute dispatch. For compute shaders, we're ok because we only ever use one dispatch size. For fragment, however, the hardware dyna