mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
aco: Fix VOP2 instruction format in visit_tex.
There was a v_or_b32 that accidentally used SOP2.
It should use VOP2.
Issue found by looking at a gfxreconstruct trace posted by a user
in this bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/5838
Cc: mesa-stable
Fixes: 93c8ebfa78 "aco: Initial commit of independent AMD compiler"
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15923>
This commit is contained in:
parent
581035b3a9
commit
b874a2ed61
1 changed files with 1 additions and 1 deletions
|
|
@ -9083,7 +9083,7 @@ visit_tex(isel_context* ctx, nir_tex_instr* instr)
|
|||
}
|
||||
|
||||
if (pack_const && pack != Temp())
|
||||
pack = bld.sop2(aco_opcode::v_or_b32, bld.def(v1), Operand::c32(pack_const), pack);
|
||||
pack = bld.vop2(aco_opcode::v_or_b32, bld.def(v1), Operand::c32(pack_const), pack);
|
||||
}
|
||||
if (pack_const && pack == Temp())
|
||||
offset = bld.copy(bld.def(v1), Operand::c32(pack_const));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue