From: Rob Clark Date: Fri, 20 Dec 2019 21:06:11 +0000 (-0800) Subject: freedreno/ir3: fix flat shading again X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0c3206379403c5b7242c65695b10abe607b4a19a;p=mesa.git 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 --- 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 {