summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/glsl_to_nir.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2015-05-05 23:10:56 +0300
committerFrancisco Jerez <[email protected]>2015-05-12 15:47:57 +0300
commitd91d6b3f03f36d4cfef5e9aacac1534f12372c9f (patch)
tree60d609d04aa04c63422c5db519d57e9e62c73092 /src/glsl/nir/glsl_to_nir.cpp
parentf8f8b318476cb40650b0bc2597b21978fc456d78 (diff)
nir: Translate memory barrier intrinsics from GLSL IR.
Reviewed-by: Connor Abbott <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/glsl/nir/glsl_to_nir.cpp')
-rw-r--r--src/glsl/nir/glsl_to_nir.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp
index ff9c9b4a9e7..af758ceb020 100644
--- a/src/glsl/nir/glsl_to_nir.cpp
+++ b/src/glsl/nir/glsl_to_nir.cpp
@@ -634,6 +634,8 @@ nir_visitor::visit(ir_call *ir)
op = nir_intrinsic_image_atomic_exchange;
} else if (strcmp(ir->callee_name(), "__intrinsic_image_atomic_comp_swap") == 0) {
op = nir_intrinsic_image_atomic_comp_swap;
+ } else if (strcmp(ir->callee_name(), "__intrinsic_memory_barrier") == 0) {
+ op = nir_intrinsic_memory_barrier;
} else {
unreachable("not reached");
}
@@ -721,6 +723,8 @@ nir_visitor::visit(ir_call *ir)
ir->return_deref->type->vector_elements, NULL);
break;
}
+ case nir_intrinsic_memory_barrier:
+ break;
default:
unreachable("not reached");
}