diff options
author | Nicolai Hähnle <[email protected]> | 2017-03-30 12:15:51 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-04-05 15:29:41 +0200 |
commit | 76e3dba28981bf54b36a875755091b9e25fa374c (patch) | |
tree | 5fcd782b2b788e41288ffb69810ae7743ee8a693 /src/mesa | |
parent | 08bd0aa507fae7259de06853cc60031331f75183 (diff) |
st/glsl_to_tgsi: implement ARB_shader_ballot builtin functions
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index b4849de1dc0..04e73046778 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -2369,6 +2369,15 @@ glsl_to_tgsi_visitor::visit_expression(ir_expression* ir, st_src_reg *op) case ir_unop_vote_eq: emit_asm(ir, TGSI_OPCODE_VOTE_EQ, result_dst, op[0]); break; + case ir_unop_ballot: + emit_asm(ir, TGSI_OPCODE_BALLOT, result_dst, op[0]); + break; + case ir_unop_read_first_invocation: + emit_asm(ir, TGSI_OPCODE_READ_FIRST, result_dst, op[0]); + break; + case ir_binop_read_invocation: + emit_asm(ir, TGSI_OPCODE_READ_INVOC, result_dst, op[0], op[1]); + break; case ir_unop_u2i64: case ir_unop_u2u64: case ir_unop_b2i64: { |