r600/sfn: Handle memory_barrier
authorGert Wollny <gert.wollny@collabora.com>
Sat, 9 May 2020 09:15:04 +0000 (11:15 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 19 Jun 2020 06:58:07 +0000 (06:58 +0000)
I'm not sure whether this should actually be a barrier accross all
shader processing units, the TGSI code path seems to handle this
only by using GROUP_BARRIER, so let's do the same here.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5206>

src/gallium/drivers/r600/sfn/sfn_shader_base.cpp

index 152fd3c52e8ce48d1246d09d23b80f3e22c88b6a..7a41b2af2b93c2a2ba4dda65e3484fc7d6c7b43c 100644 (file)
@@ -593,6 +593,7 @@ bool ShaderFromNirProcessor::emit_intrinsic_instruction(nir_intrinsic_instr* ins
    case nir_intrinsic_control_barrier:
    case nir_intrinsic_memory_barrier_tcs_patch:
    case nir_intrinsic_memory_barrier_shared:
+   case nir_intrinsic_memory_barrier:
       return emit_barrier(instr);
    case nir_intrinsic_copy_deref:
    case nir_intrinsic_load_constant: