Otherwise we end up with an incorrect array load (or an assertion failure).
Fixes:
d617052db6b2f359d7242875013603ec63b069fc
r600/sfn: take address loads into account when scheduling
Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24454>
sfn_log << SfnLog::schedule << " MEM_OPS:" << mem_ring_writes_ready.size()
<< "\n";
- if (!m_current_block->lds_group_active()) {
+ if (!m_current_block->lds_group_active() &&
+ m_current_block->expected_ar_uses() == 0) {
if (last_shed != sched_free && memops_ready.size() > 8)
current_shed = sched_free;
else if (mem_ring_writes_ready.size() > 15)