gallivm: Use first_active_invocation for scalar SSBO loads.
authorEmma Anholt <emma@anholt.net>
Tue, 28 Feb 2023 20:30:36 +0000 (12:30 -0800)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Mar 2023 04:47:35 +0000 (04:47 +0000)
commit66dff3d39c5c67a72547592e6e1d74ea57952fbf
tree7717ca4c24f1f8d6c1f9f09dfe2f078953c08edd
parenta2b054c8f0a712c1377580c038d1c68995eca028
gallivm: Use first_active_invocation for scalar SSBO loads.

Again, this should reduce the complexity of the LLVM IR we emit in some
cases.  We don't use it for shared loads, due to the noted corner case.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21142>
src/gallium/auxiliary/gallivm/lp_bld_nir_soa.c