intel,nir: Move gl_LocalInvocationID lowering to nir_lower_system_values
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 15 Nov 2018 16:25:46 +0000 (10:25 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 19 Nov 2018 15:57:41 +0000 (09:57 -0600)
commit060817b2fa50bd71dc6a9ece605238ba11fc67e9
tree1b59504420384fa2ebf84ab6c76898db4ef79ca9
parent486091bc00ea06f996910885bad080ce7f591c59
intel,nir: Move gl_LocalInvocationID lowering to nir_lower_system_values

It's not at all intel-specific; the formula is dictated by OpenGL and
Vulkan.  The only intel-specific thing is that we need the lowering.  As
a nice side-effect, the new version is variable-group-size ready.

Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_system_values.c
src/intel/compiler/brw_compiler.c
src/intel/compiler/brw_nir_lower_cs_intrinsics.c