aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/lima/ir/gp/reduce_scheduler.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/lima/ir/gp/reduce_scheduler.c b/src/gallium/drivers/lima/ir/gp/reduce_scheduler.c
index 8b4f559330d..47cc6109e01 100644
--- a/src/gallium/drivers/lima/ir/gp/reduce_scheduler.c
+++ b/src/gallium/drivers/lima/ir/gp/reduce_scheduler.c
@@ -118,6 +118,8 @@ static void schedule_insert_ready_list(struct list_head *ready_list,
(insert_node->rsched.reg_pressure == node->rsched.reg_pressure &&
(insert_node->rsched.est >= node->rsched.est))))) {
insert_pos = &node->list;
+ if (node == insert_node)
+ return;
break;
}
}