freedreno/ir3: fix flat shading again
authorRob Clark <robdclark@chromium.org>
Fri, 20 Dec 2019 21:06:11 +0000 (13:06 -0800)
committerRob Clark <robdclark@gmail.com>
Tue, 24 Dec 2019 17:16:31 +0000 (17:16 +0000)
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 <robdclark@chromium.org>
src/freedreno/ir3/ir3_compiler_nir.c

index 7bbfe40dc91bd365ef35124981c270e3b9bb74cd..133388a3a80a9df221467e4f322be9268c779eb3 100644 (file)
@@ -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 {