radv/llvm: Emit s_barrier at the beginning of NGG non-GS shaders.
authorTimur Kristóf <timur.kristof@gmail.com>
Mon, 17 May 2021 12:00:58 +0000 (14:00 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 22 Jun 2021 14:32:27 +0000 (14:32 +0000)
commit25314996d058629ff9d669fe917741c29222b35b
tree7b2403c3c6a0bd18ac6a3a225701692b98dbeb00
parentd970fe2e9d6a8e9997a0ce212146d62013b3b455
radv/llvm: Emit s_barrier at the beginning of NGG non-GS shaders.

This is to fix a hang that can potentially happen when not every
wave had launched when a gs_alloc_req is executed.

Cc: mesa-stable
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10837>
src/amd/vulkan/radv_nir_to_llvm.c