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_derivatives.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_derivatives.c')
-rw-r--r-- | src/panfrost/midgard/midgard_derivatives.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/panfrost/midgard/midgard_derivatives.c b/src/panfrost/midgard/midgard_derivatives.c index 3a36965f28b..0f15af3db42 100644 --- a/src/panfrost/midgard/midgard_derivatives.c +++ b/src/panfrost/midgard/midgard_derivatives.c @@ -96,8 +96,7 @@ midgard_emit_derivatives(compiler_context *ctx, nir_alu_instr *instr) .mask = mask_of(nr_components), .ssa_args = { .dest = nir_dest_index(ctx, &instr->dest.dest), - .src0 = nir_alu_src_index(ctx, &instr->src[0]), - .src1 = -1, + .src = { nir_alu_src_index(ctx, &instr->src[0]), -1, -1 }, }, .texture = { .op = mir_derivative_op(instr->op), |