From f1269a3e013e23135b2482e4f137d69ed6cc1734 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 5 May 2015 23:00:51 +0300 Subject: [PATCH] nir: Add memory barrier intrinsic. Reviewed-by: Connor Abbott Reviewed-by: Kenneth Graunke --- src/glsl/nir/nir_intrinsics.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/glsl/nir/nir_intrinsics.h b/src/glsl/nir/nir_intrinsics.h index 2a0df2be025..10192c5315c 100644 --- a/src/glsl/nir/nir_intrinsics.h +++ b/src/glsl/nir/nir_intrinsics.h @@ -68,6 +68,13 @@ INTRINSIC(interp_var_at_offset, 1, ARR(2), true, 0, 1, 0, #define BARRIER(name) INTRINSIC(name, 0, ARR(), false, 0, 0, 0, 0) BARRIER(discard) + +/* + * Memory barrier with semantics analogous to the memoryBarrier() GLSL + * intrinsic. + */ +BARRIER(memory_barrier) + /** A conditional discard, with a single boolean source. */ INTRINSIC(discard_if, 1, ARR(1), false, 0, 0, 0, 0) -- 2.30.2