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: bdf6b7018c ("freedreno/ir3: re-work shader inputs/outputs")
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
Rob Clark 2019-12-20 13:06:11 -08:00 committed by Rob Clark
parent a8beef332d
commit 0c32063794

View 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 {