diff options
author | Francisco Jerez <[email protected]> | 2015-05-05 23:00:51 +0300 |
---|---|---|
committer | Francisco Jerez <[email protected]> | 2015-05-12 15:47:57 +0300 |
commit | f1269a3e013e23135b2482e4f137d69ed6cc1734 (patch) | |
tree | b478f57fe91d54ff6b58a2e9e03ebdad3bd9cdbe /src/glsl | |
parent | d9e930997f1addafe37e10ddc0f56d0684be0086 (diff) |
nir: Add memory barrier intrinsic.
Reviewed-by: Connor Abbott <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r-- | src/glsl/nir/nir_intrinsics.h | 7 |
1 files changed, 7 insertions, 0 deletions
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) |