From: Jonathan Marek Date: Fri, 31 May 2019 16:17:06 +0000 (-0400) Subject: freedreno/ir3: fix input ncomp for vertex shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1db86d8b62860380c34af77ae62b019ed2376443;p=mesa.git freedreno/ir3: fix input ncomp for vertex shaders ncomp is never set for vertex shaders, but a3xx and a4xx still use it. Fixes: 831f1a05c0d freedreno/ir3: rework varying packing Signed-off-by: Jonathan Marek Reviewed-by: Rob Clark --- diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index c055f0f4389..6851f311d5a 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -2381,6 +2381,7 @@ setup_input(struct ir3_context *ctx, nir_variable *in) so->inputs[n].compmask = (1 << (ncomp + frac)) - 1; so->inputs_count = MAX2(so->inputs_count, n + 1); so->inputs[n].interpolate = in->data.interpolation; + so->inputs[n].ncomp = ncomp; if (ctx->so->type == MESA_SHADER_FRAGMENT) {