anv,intel/compiler: enable shortcut in wg id to wg idx lowering on >= gfx12.5
authorMarcin Ślusarz <marcin.slusarz@intel.com>
Fri, 31 Mar 2023 10:31:19 +0000 (12:31 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 4 Jul 2023 09:15:08 +0000 (09:15 +0000)
commit1ac1d5d62e26764720c44ecca90537baa8132b17
tree2958ab82f1bb009117ac8204f4379442d136f7e7
parent3d7513ee8ea0c5c0b14b39dd2ab8f4dc23781bc1
anv,intel/compiler: enable shortcut in wg id to wg idx lowering on >= gfx12.5

This speeds up vk_meshlet_cadscene in "VK mesh ext" renderer by 1.4%

Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22334>
src/intel/compiler/brw_nir.c
src/intel/vulkan/anv_pipeline.c