r600/sfn: stop early when looking for ALU vec ready ops

No need to continue the loop if we already know that we will skip

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36860>
This commit is contained in:
Gert Wollny
2025-08-11 22:19:00 +02:00
committed by Marge Bot
parent 36c3eb5bce
commit 273d50fb84
@@ -1125,9 +1125,9 @@ BlockScheduler::collect_ready_alu_vec(std::list<AluInstr *>& ready,
}
int max_check = 0;
while (i != e && max_check++ < 64) {
if (ready.size() < 64 && (*i)->ready()) {
while (i != e && max_check++ < 64 && ready.size() < 64) {
if ((*i)->ready()) {
int priority = 0;
/* LDS fetches that use static offsets are usually ready ery fast,
* so that they would get schedules early, and this leaves the