aco: copy constant to sgpr in Builder::v_mul_imm()
No fossil-db changes. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Timur Kristóf <timur.kristof@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5390>
This commit is contained in:
@@ -380,7 +380,7 @@ public:
|
||||
} else if (bits24) {
|
||||
return vop2(aco_opcode::v_mul_u32_u24, dst, Operand(imm), tmp);
|
||||
} else {
|
||||
Temp imm_tmp = copy(def(v1), Operand(imm));
|
||||
Temp imm_tmp = copy(def(s1), Operand(imm));
|
||||
return vop3(aco_opcode::v_mul_lo_u32, dst, imm_tmp, tmp);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user