From: Connor Abbott Date: Fri, 1 Oct 2021 10:15:10 +0000 (+0200) Subject: ir3: Insert frag coord code after preamble X-Git-Tag: upstream/22.3.5~11621 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=42e21c751b050528095c48322c43889c453f211e;p=platform%2Fupstream%2Fmesa.git ir3: Insert frag coord code after preamble To match the pre-preamble behavior, and so that we can better schedule it. Part-of: --- diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 481db2b..ecaf8e7 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -1825,7 +1825,7 @@ static struct ir3_instruction * get_frag_coord(struct ir3_context *ctx, nir_intrinsic_instr *intr) { if (!ctx->frag_coord) { - struct ir3_block *b = ctx->in_block; + struct ir3_block *b = ir3_after_preamble(ctx->ir); struct ir3_instruction *xyzw[4]; struct ir3_instruction *hw_frag_coord;