mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
pan/mdg: Use type to determine triviality of a move
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5151>
This commit is contained in:
parent
df3d932bb4
commit
d4a42a78d8
1 changed files with 1 additions and 2 deletions
|
|
@ -159,8 +159,7 @@ mir_nontrivial_outmod(midgard_instruction *ins)
|
|||
bool is_int = midgard_is_integer_op(ins->alu.op);
|
||||
unsigned mod = ins->alu.outmod;
|
||||
|
||||
/* Type conversion is a sort of outmod */
|
||||
if (ins->alu.dest_override != midgard_dest_override_none)
|
||||
if (ins->dest_type != ins->src_types[1])
|
||||
return true;
|
||||
|
||||
if (is_int)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue