From d91d6b3f03f36d4cfef5e9aacac1534f12372c9f Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 5 May 2015 23:10:56 +0300 Subject: nir: Translate memory barrier intrinsics from GLSL IR. Reviewed-by: Connor Abbott Reviewed-by: Kenneth Graunke --- src/glsl/nir/glsl_to_nir.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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"); } -- cgit v1.2.3