summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-09-27 08:20:17 -0400
committerAlyssa Rosenzweig <[email protected]>2019-09-30 08:40:13 -0400
commit0ecfcbf46225bfb14f92a515ca2140ad2cbc4646 (patch)
tree1b9c510382a83c2a633012e061b3f4a410d4e421 /src/panfrost/midgard
parentad05e8a52ce19f5b48302677b0c0f9ec24a27ed8 (diff)
pan/midgard: Squeeze indices before scheduling
This allows node_count to be correct while scheduling. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_schedule.c1
1 files changed, 1 insertions, 0 deletions
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 */