gallivm/nir: refactor the local invocation index calc.
authorDave Airlie <airlied@redhat.com>
Wed, 17 May 2023 03:12:32 +0000 (13:12 +1000)
committerMarge Bot <emma+marge@anholt.net>
Tue, 23 May 2023 14:39:33 +0000 (14:39 +0000)
commitf52510efb3c99949ebba1fccf268d34a3dc2f095
treee87150653b438d26971dbfdc0cc2dc610c1d554d
parent1e4919936425c7a20a14a3c954eb2e4700a734f6
gallivm/nir: refactor the local invocation index calc.

This is needed elsewhere for mesh shaders.

Reviewed-by: Brian Paul <brianp@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23065>
src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c