aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/bifrost/bi_print.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2020-03-05 16:33:09 -0500
committerMarge Bot <[email protected]>2020-03-07 00:37:39 +0000
commit7fd22c3bbd781ce497304c1270f367b1cd5fd14c (patch)
tree3ef9624ba0bda0001a1a8e638a29275539fea2d0 /src/panfrost/bifrost/bi_print.c
parent2e9b5f8ef4b80e57c9653fcdc5e0867e9dd338a6 (diff)
pan/bi: Print branch target
...if it's present, anyway. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4097>
Diffstat (limited to 'src/panfrost/bifrost/bi_print.c')
-rw-r--r--src/panfrost/bifrost/bi_print.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/panfrost/bifrost/bi_print.c b/src/panfrost/bifrost/bi_print.c
index 68cbbedbb82..9c9f6770285 100644
--- a/src/panfrost/bifrost/bi_print.c
+++ b/src/panfrost/bifrost/bi_print.c
@@ -328,6 +328,13 @@ bi_print_instruction(bi_instruction *ins, FILE *fp)
fprintf(fp, ", ");
}
+ if (ins->type == BI_BRANCH) {
+ if (ins->branch.target)
+ fprintf(fp, "-> block%u", ins->branch.target->name);
+ else
+ fprintf(fp, "-> blockhole");
+ }
+
fprintf(fp, "\n");
}