nir/opt_access: ignore barriers and coherent qualifier
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 1 Dec 2020 14:30:22 +0000 (14:30 +0000)
committerMarge Bot <eric+marge@anholt.net>
Wed, 9 Dec 2020 14:41:38 +0000 (14:41 +0000)
commite646f6d30e0cbac905356e8229d114abb9648ebf
tree9e624ffdac4a7c4e521514065af630cabe3316db
parent7ddea94819ccf362b8bce036334b65951f8b2829
nir/opt_access: ignore barriers and coherent qualifier

It shouldn't matter whether an access/variable is coherent or not, just
that it's not written. The coherent qualifier doesn't mean anything with
read-only memory.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6483>
src/compiler/nir/nir_opt_access.c