r600/sfn: print failing block when scheduling fails

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21347>
This commit is contained in:
Gert Wollny
2023-03-06 13:02:32 +01:00
committed by Marge Bot
parent fdec18640a
commit ae55668f77
@@ -480,6 +480,19 @@ BlockScheduler::schedule_block(Block& in_block,
fail = true;
}
if (fail) {
std::cerr << "Failing block:\n";
for (auto& i : in_block)
std::cerr << "[" << i->block_id() << ":" << i->index() << "] "
<< (i->is_scheduled() ? "S " : "")
<< *i << "\n";
std::cerr << "\nSo far scheduled: ";
for (auto i : *m_current_block)
std::cerr << "[" << i->block_id() << ":" << i->index() << "] " << *i << "\n";
std::cerr << "\n\n: ";
}
assert(cir.tex.empty());
assert(cir.exports.empty());
assert(cir.fetches.empty());