intel/nir: Lower load_num_work_groups to 32-bit if needed
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 1 Sep 2020 19:46:25 +0000 (14:46 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Sep 2020 20:38:22 +0000 (20:38 +0000)
commitfe18a0fd45c79cdba7b63959657861488c775c0d
treeba9947082dabbe4d87d6dbf6d52bea5e9e707018
parent5799da47c794aced34187df2eee6fd349c51b931
intel/nir: Lower load_num_work_groups to 32-bit if needed

For OpenCL-style kernels, this builtin is 64-bit.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6570>
src/intel/compiler/brw_fs_nir.cpp
src/intel/compiler/brw_nir_lower_cs_intrinsics.c