nir,radv/aco: add and use pass to lower make available/visible barriers
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 1 May 2020 13:32:31 +0000 (14:32 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Jul 2020 16:56:34 +0000 (16:56 +0000)
commit2adb337256f146b10b31365ac6ba8ab820d9014e
tree611c1b79c47859b3c5c29f5b41c8fc85e3b8dd7c
parent7a614806134dc78bcfb2a75c1ba09daed9c0eeeb
nir,radv/aco: add and use pass to lower make available/visible barriers

Lower them to ACCESS_COHERENT to simplify the backend and
probably give better performance than invalidating or writing back the
entire L0/L1 cache.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4905>
src/amd/vulkan/radv_pipeline.c
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_memory_model.c [new file with mode: 0644]