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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user