[Mesa-dev] [PATCH 03/30] pan/midgard: Squeeze indices before scheduling

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Sat Sep 28 19:02:08 UTC 2019


This allows node_count to be correct while scheduling.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
 src/panfrost/midgard/midgard_schedule.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/panfrost/midgard/midgard_schedule.c b/src/panfrost/midgard/midgard_schedule.c
index b8d9b5ec9be..2ed25da2e0d 100644
--- a/src/panfrost/midgard/midgard_schedule.c
+++ b/src/panfrost/midgard/midgard_schedule.c
@@ -983,6 +983,7 @@ schedule_program(compiler_context *ctx)
         /* Must be lowered right before RA */
         mir_squeeze_index(ctx);
         mir_lower_special_reads(ctx);
+        mir_squeeze_index(ctx);
 
         /* Lowering can introduce some dead moves */
 
-- 
2.23.0



More information about the mesa-dev mailing list