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:
Rhys Perry
2020-10-30 16:47:13 +00:00
committed by Marge Bot
parent 756bb29391
commit 8ca23bcf39

View File

@@ -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);
}
}