mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-13 00:30:29 +01:00
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.
This commit is contained in:
parent
ce55afc4d6
commit
6cbb8f99d2
1 changed files with 2 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue