mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 07:08:04 +02: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> (cherry picked from commitcf0b54cdc1)
This commit is contained in:
parent
7770f9a27d
commit
9c6e0fb476
2 changed files with 2 additions and 2 deletions
|
|
@ -2425,7 +2425,7 @@
|
|||
"description": "aco: fix v_mul_hi_u32_u24 format",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "57c152af9ce2e34c1a8724574c6a2c5d19c0c845"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1745,7 +1745,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