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

2017-10-13 Thread Lionel Landwerlin
Acked-by: Lionel Landwerlin On 13/10/17 06:48, Jason Ekstrand wrote: 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 o

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

2017-10-12 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