From: Rob Clark Date: Thu, 25 Apr 2019 19:20:07 +0000 (-0700) Subject: freedreno/ir3: fix load_interpolated_input slot X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c8e825aaac4a7603e811d7339d9a7edcd826157a;p=mesa.git freedreno/ir3: fix load_interpolated_input slot The so->inputs[] table is in units of vec4 Fixes: 7ff6705b8d8 freedreno/ir3: convert to "new style" frag inputs Signed-off-by: Rob Clark --- diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index 8347520f6d5..73e7dd6b973 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -1185,7 +1185,7 @@ emit_intrinsic(struct ir3_context *ctx, nir_intrinsic_instr *intr) idx += nir_src_as_uint(intr->src[1]); for (int i = 0; i < intr->num_components; i++) { unsigned inloc = idx * 4 + i + comp; - if (ctx->so->inputs[idx * 4].bary) { + if (ctx->so->inputs[idx].bary) { dst[i] = ir3_BARY_F(b, create_immed(b, inloc), 0, coord, 0); } else { /* for non-varyings use the pre-setup input, since