From: Francisco Jerez Date: Tue, 5 May 2015 20:00:51 +0000 (+0300) Subject: nir: Add memory barrier intrinsic. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1269a3e013e23135b2482e4f137d69ed6cc1734;p=mesa.git nir: Add memory barrier intrinsic. Reviewed-by: Connor Abbott Reviewed-by: Kenneth Graunke --- 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)