diff options
author | Ilia Mirkin <[email protected]> | 2014-09-07 18:36:06 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-07-23 00:59:30 +0200 |
commit | 82f7fad96691480b9ffdeb3e8e1b3345ede713ef (patch) | |
tree | ec2b6789095716f53b0116b58788247c27ea3158 /src/mesa | |
parent | 8f40428afbbfa9080964df3cd4f38f24122c4c5e (diff) |
st/mesa: add barrier support
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index ad319f06cad..b0fc6254edb 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -3478,7 +3478,10 @@ glsl_to_tgsi_visitor::visit(ir_end_primitive *ir) void glsl_to_tgsi_visitor::visit(ir_barrier *ir) { - unreachable("Not implemented!"); + assert(this->prog->Target == GL_TESS_CONTROL_PROGRAM_NV || + this->prog->Target == GL_COMPUTE_PROGRAM_NV); + + emit_asm(ir, TGSI_OPCODE_BARRIER); } glsl_to_tgsi_visitor::glsl_to_tgsi_visitor() |