radv: use scoped barriers
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 17 Jul 2020 18:17:10 +0000 (19:17 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 17:57:13 +0000 (17:57 +0000)
commitcc3bc9493cfc0ec6c03d16b17f9eb703dead3cac
treea1723289200c9778ea0987d09a21b775968e912c
parenta8f8c02e7eff7acf0c4dc8294526f137ceb39d42
radv: use scoped barriers

fossil-db (LLVM, Navi):
Totals from 843 (0.62% of 135820) affected shaders:
SGPRs: 40456 -> 40480 (+0.06%); split: -0.10%, +0.16%
VGPRs: 39648 -> 39688 (+0.10%); split: -0.01%, +0.11%
CodeSize: 2936164 -> 2932508 (-0.12%); split: -0.21%, +0.09%
MaxWaves: 10828 -> 10827 (-0.01%)

fossil-db changes seem to be due to SPIR-V -> NIR emitting a workgroup
scope shared memory barrier instead of a group_memory_barrier.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5980>
src/amd/vulkan/radv_meta_fast_clear.c
src/amd/vulkan/radv_shader.c