mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-10 01:18:18 +02:00
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:
parent
4f38659f9e
commit
b03343c7ec
1 changed files with 4 additions and 6 deletions
|
|
@ -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--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue