nir/spirv: Add support for the ControlBarrier instruction
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 06:08:24 +0000 (22:08 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 5 Jan 2016 06:08:24 +0000 (22:08 -0800)
src/glsl/nir/spirv/spirv_to_nir.c

index ede347f97f839d6da1356d4e22cda651272d8734..06a99f3031efa51d329311fc05c3d73ee63debea 100644 (file)
@@ -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");
    }