freedreno/ir3: Fix the a3xx TF outputs stores.
authorEric Anholt <eric@anholt.net>
Fri, 1 May 2020 00:31:02 +0000 (17:31 -0700)
committerMarge Bot <eric+marge@anholt.net>
Fri, 1 May 2020 16:26:31 +0000 (16:26 +0000)
We were trying to deref the vector-collected outputs[] array before it's
been set up, but we want the per-component outputs anyway.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4562>

src/freedreno/ir3/ir3_compiler_nir.c

index 9c42efd67adcc78feeef8db5f2bcfe0038277cd2..184595bf9885fbe954cf97fb9a11363db3872aa9 100644 (file)
@@ -2848,7 +2848,7 @@ emit_stream_out(struct ir3_context *ctx)
                        struct ir3_instruction *base, *out, *stg;
 
                        base = bases[strmout->output[i].output_buffer];
-                       out = ctx->ir->outputs[regid(strmout->output[i].register_index, c)];
+                       out = ctx->outputs[regid(strmout->output[i].register_index, c)];
 
                        stg = ir3_STG(ctx->block, base, 0, out, 0,
                                        create_immed(ctx->block, 1), 0);