From: Alyssa Rosenzweig Date: Tue, 6 Aug 2019 00:59:53 +0000 (-0700) Subject: pan/midgard: Pretty-print destinations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0a7cc239bd0a83cdbfc42999eadfe76ccfa763dd;p=mesa.git pan/midgard: Pretty-print destinations They're not "sources" but they follow the same conventions. Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/panfrost/midgard/midgard_print.c b/src/panfrost/midgard/midgard_print.c index bf26bf70b2c..585df36565f 100644 --- a/src/panfrost/midgard/midgard_print.c +++ b/src/panfrost/midgard/midgard_print.c @@ -32,7 +32,7 @@ * registers */ static void -mir_print_source(int source) +mir_print_index(int source) { if (source >= SSA_FIXED_MINIMUM) { /* Specific register */ @@ -124,23 +124,24 @@ mir_print_instruction(midgard_instruction *ins) ssa_args *args = &ins->ssa_args; - printf(" %d", args->dest); + printf(" "); + mir_print_index(args->dest); if (ins->mask != 0xF) mir_print_mask(ins->mask); printf(", "); - mir_print_source(args->src[0]); + mir_print_index(args->src[0]); printf(", "); if (args->inline_constant) printf("#%d", ins->inline_constant); else - mir_print_source(args->src[1]); + mir_print_index(args->src[1]); printf(", "); - mir_print_source(args->src[2]); + mir_print_index(args->src[2]); if (ins->has_constants) printf(" <%f, %f, %f, %f>", ins->constants[0], ins->constants[1], ins->constants[2], ins->constants[3]);