i965/cs: Generate code to load gl_NumWorkGroups
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 24 Sep 2015 08:45:40 +0000 (01:45 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Tue, 29 Sep 2015 15:23:47 +0000 (08:23 -0700)
commit681b4badaedec5c9503887c4afb32485ce22c30e
tree9c5f88859e3147521ce5e63c0331cc822331ed8b
parent4c6ddd3397f9ec363342831eab710003996e77a8
i965/cs: Generate code to load gl_NumWorkGroups

This code also sets cs_prog_data->uses_num_work_groups which is later
used by state setup to indicate that the gl_NumWorkGroups surface
needs to be setup.

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp