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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user