aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-15 10:49:33 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-19 08:32:17 -0700
commitd68019ad1f7c2a448a5ec4f85a261e9cfc2f8944 (patch)
tree5771e02d9469e550ba9aa75e2d45555665327dbc /src/panfrost/midgard
parente3a418fe866aea61b149db728f85c30f218adcd2 (diff)
pan/midgard: Print predecessors in MIR
Just as a sanity check. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_print.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_print.c b/src/panfrost/midgard/midgard_print.c
index 240780a1f7d..1f8bd12680e 100644
--- a/src/panfrost/midgard/midgard_print.c
+++ b/src/panfrost/midgard/midgard_print.c
@@ -178,6 +178,11 @@ mir_print_block(midgard_block *block)
}
}
+ printf(" from { ");
+ mir_foreach_predecessor(block, pred)
+ printf("block%d ", pred->source_id);
+ printf("}");
+
printf("\n\n");
}