gallivm/ssbo: fix up dynamic indexed ssbo load/stores/atomics
authorDave Airlie <airlied@redhat.com>
Thu, 2 Sep 2021 00:49:05 +0000 (10:49 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Sep 2021 22:05:51 +0000 (08:05 +1000)
commit1ccac4abffa1b31bf376b323714e89a793b5f98b
tree58d801a18c1f61e5a275c89eca68575df5178d4d
parent2585d2d6fb854ec1b9557473cae408d6f8616785
gallivm/ssbo: fix up dynamic indexed ssbo load/stores/atomics

Although the index has to be dynamically uniform, if we don't ever
execute a few lanes then we'll have 0, so it important to read the
ssbo index from the first active lane.

Just loop over them all.

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