ir3: Insert frag coord code after preamble

To match the pre-preamble behavior, and so that we can better schedule
it.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13148>
This commit is contained in:
Connor Abbott 2021-10-01 12:15:10 +02:00 committed by Marge Bot
parent b6fe69d855
commit 42e21c751b

View file

@ -1825,7 +1825,7 @@ static struct ir3_instruction *
get_frag_coord(struct ir3_context *ctx, nir_intrinsic_instr *intr) get_frag_coord(struct ir3_context *ctx, nir_intrinsic_instr *intr)
{ {
if (!ctx->frag_coord) { 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 *xyzw[4];
struct ir3_instruction *hw_frag_coord; struct ir3_instruction *hw_frag_coord;