aco/gfx11.7: allow any src VGPR for VOPD with two v_dual_mov_B32

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40917>
This commit is contained in:
Rhys Perry 2026-04-08 11:56:51 +01:00 committed by Marge Bot
parent ad5be681bd
commit f67b861f78

View file

@ -304,9 +304,9 @@ bool
are_src_banks_compatible(enum amd_gfx_level gfx_level, const VOPDInfo& a, const VOPDInfo& b,
bool swap)
{
if (gfx_level >= GFX12 && a.op == aco_opcode::v_dual_mov_b32 &&
if (gfx_level >= GFX11_7 && a.op == aco_opcode::v_dual_mov_b32 &&
b.op == aco_opcode::v_dual_mov_b32) {
/* On GFX12+, OPY uses src2 if both OPX and OPY are v_dual_mov_b32, so there are no
/* On GFX11.7+, OPY uses src2 if both OPX and OPY are v_dual_mov_b32, so there are no
* compatibility issues. */
return true;
}