From 0c3206379403c5b7242c65695b10abe607b4a19a Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Fri, 20 Dec 2019 13:06:11 -0800 Subject: [PATCH] freedreno/ir3: fix flat shading again These days `ctx->inputs` is the split scalar input components and `ir->inputs` is the full vecN. This got fixed in the load_input case, but the load_interpolated_input case was missed. Fixes: bdf6b7018ce ("freedreno/ir3: re-work shader inputs/outputs") Signed-off-by: Rob Clark --- 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 7bbfe40dc91..133388a3a80 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -1536,7 +1536,7 @@ emit_intrinsic(struct ir3_context *ctx, nir_intrinsic_instr *intr) * that is easier than mapping things back to a * nir_variable to figure out what it is. */ - dst[i] = ctx->ir->inputs[inloc]; + dst[i] = ctx->inputs[inloc]; } } } else { -- 2.30.2