From: Francisco Jerez Date: Tue, 5 May 2015 20:10:56 +0000 (+0300) Subject: nir: Translate memory barrier intrinsics from GLSL IR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d91d6b3f03f36d4cfef5e9aacac1534f12372c9f;p=mesa.git nir: Translate memory barrier intrinsics from GLSL IR. Reviewed-by: Connor Abbott Reviewed-by: Kenneth Graunke --- 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"); }