From 07f89126cde6d61825bc3e69aec0b1eed1a83751 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 30 Apr 2020 17:31:02 -0700 Subject: [PATCH] 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: --- src/freedreno/ir3/ir3_compiler_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2