nir/load_store_vectorize: Fix shared atomic info
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 31 Mar 2020 08:19:39 +0000 (03:19 -0500)
committerMarge Bot <eric+marge@anholt.net>
Fri, 3 Apr 2020 20:26:54 +0000 (20:26 +0000)
commit04d08ea149c05e4d5dad819269d74713aac270da
tree70791157eebb8dd1cc5ed2bb9e024ae743d49c31
parentc1bcb025dba7b73a865916dcda616d0479c94476
nir/load_store_vectorize: Fix shared atomic info

These were clearly copied and pasted from SSBOs.  The shared atomics
don't have an SSBO index so their offset is src0 and data is src1.

Fixes: ce9205c03bd20 "nir: add a load/store vectorization pass"
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4367>
src/compiler/nir/nir_opt_load_store_vectorize.c