mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
aco: fix v_mul_hi_u32_u24 format
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: 57c152af9c ("aco: select v_mul_{hi}_u32_u24 for 24-bit multiplications")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3874
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7759>
This commit is contained in:
parent
ecebc263f5
commit
cf0b54cdc1
1 changed files with 1 additions and 1 deletions
|
|
@ -1803,7 +1803,7 @@ void visit_alu_instr(isel_context *ctx, nir_alu_instr *instr)
|
|||
|
||||
Temp tmp = dst.regClass() == s1 ? bld.tmp(v1) : dst;
|
||||
if (src0_ub <= 0xffffff && src1_ub <= 0xffffff) {
|
||||
emit_vop3a_instruction(ctx, instr, aco_opcode::v_mul_hi_u32_u24, tmp);
|
||||
emit_vop2_instruction(ctx, instr, aco_opcode::v_mul_hi_u32_u24, tmp, true);
|
||||
} else {
|
||||
emit_vop3a_instruction(ctx, instr, aco_opcode::v_mul_hi_u32, tmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue