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:
committed by
Marge Bot
parent
df3d932bb4
commit
d4a42a78d8
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user