diff options
author | Nicolai Hähnle <[email protected]> | 2017-04-19 10:53:13 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2017-04-28 11:34:00 +0200 |
commit | 6cbb8f99d2de2e89c590e9ef114d69a1464e2ec6 (patch) | |
tree | 73842c7d8804eac83c839078b96d22b0803bb7a8 | |
parent | ce55afc4d6d3d97440856cad117d02c20fb952a9 (diff) |
st/glsl_to_tgsi: cleanup using visit_generic_intrinsic
It turns out that explicitly setting the writemask isn't actually
needed; emit_asm does the right thing based on looking at the types.
-rw-r--r-- | src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 83dadabf65c..b9204f0f4ff 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -3989,15 +3989,9 @@ glsl_to_tgsi_visitor::visit(ir_call *ir) visit_image_intrinsic(ir); return; - case ir_intrinsic_shader_clock: { - ir->return_deref->accept(this); - - st_dst_reg dst = st_dst_reg(this->result); - dst.writemask = TGSI_WRITEMASK_XY; - - emit_asm(ir, TGSI_OPCODE_CLOCK, dst); + case ir_intrinsic_shader_clock: + visit_generic_intrinsic(ir, TGSI_OPCODE_CLOCK); return; - } case ir_intrinsic_vote_all: visit_generic_intrinsic(ir, TGSI_OPCODE_VOTE_ALL); |