aboutsummaryrefslogtreecommitdiffstats
path: root/src/panfrost/midgard/midgard_print.c
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-02 15:25:02 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-02 16:48:54 -0700
commitd4bcca19dacfac53ffbad0dddd8f5919adb508c3 (patch)
treec12e370bd6b98520d271e2e8bdd121537d3ca83e /src/panfrost/midgard/midgard_print.c
parent513d02cfeb9cd42d8ed41a6999bcab08bb5e239d (diff)
pan/midgard: Switch sources to an array for trinary sources
We need three independent sources to support indirect SSBO writes (as well as textures with both LOD/bias and offsets). Now is a good time to make sources just an array so we don't have to rewrite a ton of code if we ever needed a fourth source for some reason. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_print.c')
-rw-r--r--src/panfrost/midgard/midgard_print.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/panfrost/midgard/midgard_print.c b/src/panfrost/midgard/midgard_print.c
index 347c35e3f36..a6152607233 100644
--- a/src/panfrost/midgard/midgard_print.c
+++ b/src/panfrost/midgard/midgard_print.c
@@ -90,13 +90,16 @@ mir_print_instruction(midgard_instruction *ins)
printf(" %d, ", args->dest);
- mir_print_source(args->src0);
+ mir_print_source(args->src[0]);
printf(", ");
if (args->inline_constant)
printf("#%d", ins->inline_constant);
else
- mir_print_source(args->src1);
+ mir_print_source(args->src[1]);
+
+ printf(", ");
+ mir_print_source(args->src[2]);
if (ins->has_constants)
printf(" <%f, %f, %f, %f>", ins->constants[0], ins->constants[1], ins->constants[2], ins->constants[3]);