mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
aco: Fix some constant patterns in 16-bit vec4 construction with s_pack.
Fixes: 04e3d7ad93 ("aco: improve nir_op_vec with constant operands")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24286>
This commit is contained in:
parent
2fcf7c7014
commit
e536d31a46
1 changed files with 2 additions and 0 deletions
|
|
@ -1444,6 +1444,8 @@ visit_alu_instr(isel_context* ctx, nir_alu_instr* instr)
|
|||
else if (packed[i * 2].id())
|
||||
packed[i] = bld.sop2(aco_opcode::s_pack_ll_b32_b16, bld.def(s1), packed[i * 2],
|
||||
Operand::c32(const_vals[i * 2 + 1]));
|
||||
else
|
||||
packed[i] = Temp(); /* Both constants, so reset the entry */
|
||||
|
||||
if (same)
|
||||
const_vals[i] = const_vals[i * 2] | (const_vals[i * 2 + 1] << 16);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue