diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-05 17:59:53 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-12 12:43:01 -0700 |
commit | 0a7cc239bd0a83cdbfc42999eadfe76ccfa763dd (patch) | |
tree | fdaed0d768ac5518002762d1fbd87da98bc8784d /src/panfrost/midgard | |
parent | ba8ec19a64b7c58f504f8573b07ecf667b9a7fab (diff) |
pan/midgard: Pretty-print destinations
They're not "sources" but they follow the same conventions.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r-- | src/panfrost/midgard/midgard_print.c | 11 |
1 files changed, 6 insertions, 5 deletions
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]); |