freedreno/ir3: fix input ncomp for vertex shaders
authorJonathan Marek <jonathan@marek.ca>
Fri, 31 May 2019 16:17:06 +0000 (12:17 -0400)
committerJonathan Marek <jonathan@marek.ca>
Fri, 31 May 2019 16:21:23 +0000 (12:21 -0400)
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 <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@chromium.org>
src/freedreno/ir3/ir3_compiler_nir.c

index c055f0f438934f374136c34cd570887d45ec5961..6851f311d5a046cddac3aff3f6a243db50fe47ae 100644 (file)
@@ -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) {