r600/sfn: Move lds_queue_read decrement out of prepare_alu_src to caller

Assisted-by: Copilot (auto mode)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41945>
This commit is contained in:
Gert Wollny 2026-04-30 18:28:17 +02:00 committed by Marge Bot
parent 4f38659f9e
commit b03343c7ec

View file

@ -331,8 +331,10 @@ AssemblerVisitor::emit_alu_op(const AluInstr& ai)
prepare_alu_src(alu, ai);
if (ai.has_lds_queue_read()) {
assert(m_bc.cf_last->nlds_read > 0);
m_bc.cf_last->nlds_read--;
}
if (m_last_addr)
sfn_log << SfnLog::assembly << " Current address register is " << *m_last_addr
@ -430,10 +432,6 @@ AssemblerVisitor::prepare_alu_src(r600_bytecode_alu& alu, const AluInstr& ai)
alu.src[i].kc_rel = kcache_index_mode;
}
if (ai.has_lds_queue_read()) {
assert(m_bc.cf_last->nlds_read > 0);
m_bc.cf_last->nlds_read--;
}
}
}