diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-02 15:25:02 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-02 16:48:54 -0700 |
commit | d4bcca19dacfac53ffbad0dddd8f5919adb508c3 (patch) | |
tree | c12e370bd6b98520d271e2e8bdd121537d3ca83e /src/panfrost/midgard/midgard_print.c | |
parent | 513d02cfeb9cd42d8ed41a6999bcab08bb5e239d (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.c | 7 |
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]); |