From: Alyssa Rosenzweig Date: Thu, 5 Mar 2020 21:33:09 +0000 (-0500) Subject: pan/bi: Print branch target X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7fd22c3bbd781ce497304c1270f367b1cd5fd14c;p=mesa.git pan/bi: Print branch target ...if it's present, anyway. Signed-off-by: Alyssa Rosenzweig Part-of: --- 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"); }