From: Eric Anholt Date: Fri, 1 May 2020 00:31:02 +0000 (-0700) Subject: freedreno/ir3: Fix the a3xx TF outputs stores. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=07f89126cde6d61825bc3e69aec0b1eed1a83751;p=mesa.git freedreno/ir3: Fix the a3xx TF outputs stores. 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: --- diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 9c42efd67ad..184595bf988 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -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);