From 8b403d599b7acf97616879d78e61456508f35ad3 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 4 Jan 2016 22:08:24 -0800 Subject: [PATCH] nir/spirv: Add support for the ControlBarrier instruction --- src/glsl/nir/spirv/spirv_to_nir.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/glsl/nir/spirv/spirv_to_nir.c b/src/glsl/nir/spirv/spirv_to_nir.c index ede347f97f8..06a99f3031e 100644 --- a/src/glsl/nir/spirv/spirv_to_nir.c +++ b/src/glsl/nir/spirv/spirv_to_nir.c @@ -3113,6 +3113,8 @@ vtn_handle_barrier(struct vtn_builder *b, SpvOp opcode, intrinsic_op = nir_intrinsic_memory_barrier; break; case SpvOpControlBarrier: + intrinsic_op = nir_intrinsic_barrier; + break; default: unreachable("unknown barrier instruction"); } -- 2.30.2