summaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_print.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/panfrost/midgard/midgard_print.c')
-rw-r--r--src/panfrost/midgard/midgard_print.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/panfrost/midgard/midgard_print.c b/src/panfrost/midgard/midgard_print.c
index 6e10429ccee..a950c13c93d 100644
--- a/src/panfrost/midgard/midgard_print.c
+++ b/src/panfrost/midgard/midgard_print.c
@@ -106,13 +106,23 @@ mir_print_instruction(midgard_instruction *ins)
void
mir_print_block(midgard_block *block)
{
- printf("{\n");
+ printf("%p: {\n", block);
mir_foreach_instr_in_block(block, ins) {
mir_print_instruction(ins);
}
- printf("}\n");
+ printf("}");
+
+ if (block->nr_successors) {
+ printf(" -> ");
+ for (unsigned i = 0; i < block->nr_successors; ++i) {
+ printf("%p%s", block->successors[i],
+ (i + 1) != block->nr_successors ? ", " : "");
+ }
+ }
+
+ printf("\n\n");
}
void