gallivm: Use first active invocation in some image/ssbo accesses.
authorEmma Anholt <emma@anholt.net>
Mon, 30 Jan 2023 23:33:44 +0000 (15:33 -0800)
committerEmma Anholt <emma@anholt.net>
Fri, 3 Feb 2023 16:51:40 +0000 (08:51 -0800)
commit70be21e7c600baa3dc190f9fa6a683719780adc0
tree9f1b3280cd5f8836b88262057ce065146bc1aedd
parent8c2493d041c496452fbeae6e2b23f019524691c1
gallivm: Use first active invocation in some image/ssbo accesses.

These should be looking at that rather than blindly using invocation 0
(which may be junk when in control flow).

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