diff options
author | Jordan Justen <[email protected]> | 2015-03-13 12:03:15 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2015-06-12 15:12:40 -0700 |
commit | 2867f2e8cd54e2cbb38140e2e0f5521973091ace (patch) | |
tree | e8da6f2b0b6f30757d9b4878c20bb22bf4605258 /src/glsl/nir/glsl_to_nir.cpp | |
parent | 86855365b4059c60a9e1dcc0b7713941a2507bd0 (diff) |
nir: Add barrier intrinsic function
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Chris Forbes <[email protected]>
Reviewed-by: Connor Abbott <[email protected]>
Reviewed-by: Ben Widawsky <[email protected]>
Diffstat (limited to 'src/glsl/nir/glsl_to_nir.cpp')
-rw-r--r-- | src/glsl/nir/glsl_to_nir.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index 3c7284e8ca5..95531bbcd8f 100644 --- a/src/glsl/nir/glsl_to_nir.cpp +++ b/src/glsl/nir/glsl_to_nir.cpp @@ -1894,5 +1894,7 @@ nir_visitor::visit(ir_dereference_array *ir) void nir_visitor::visit(ir_barrier *ir) { - unreachable("Not implemented!"); + nir_intrinsic_instr *instr = + nir_intrinsic_instr_create(this->shader, nir_intrinsic_barrier); + nir_instr_insert_after_cf_list(this->cf_node_list, &instr->instr); } |