nir: Filter modes of scoped memory barrier in nir_opt_load_store_vectorize
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Sat, 11 Jan 2020 01:33:31 +0000 (17:33 -0800)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 17:57:13 +0000 (17:57 +0000)
commit1a42e7dae944535ae63d1d5a16a015dd5524f954
treee645c8ba391e3160b7084ce634265b2b07776ff5
parent5c5555a862754a5b43fee2abf4fc34e888d22a06
nir: Filter modes of scoped memory barrier in nir_opt_load_store_vectorize

Otherwise a scoped memory barrier containing nir_var_mem_ubo (which
memoryBarrier() does lower to) would incorrectly prevent the
optimization to happen in UBOs.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5980>
src/compiler/nir/nir_opt_load_store_vectorize.c