r600/sfn: fix querying number of sources for LDS ops in readport validation

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37321>
This commit is contained in:
Gert Wollny 2025-09-11 14:46:27 +02:00 committed by Marge Bot
parent 0cd0efbbf9
commit 603af345be

View file

@ -750,7 +750,9 @@ AluInstr::check_readport_validation(PRegister old_src, PVirtualValue new_src) co
bool success = true;
AluReadportReservation rpr_sum;
unsigned nsrc = alu_ops.at(m_opcode).nsrc;
unsigned nsrc = !has_alu_flag(alu_is_lds) ? alu_ops.at(m_opcode).nsrc
: lds_ops.at(m_lds_opcode).nsrc;
assert(nsrc * m_alu_slots == m_src.size());
for (int s = 0; s < m_alu_slots && success; ++s) {