freedreno/ir3: fix input ncomp for vertex shaders
ncomp is never set for vertex shaders, but a3xx and a4xx still use it.
Fixes: 831f1a05c0
freedreno/ir3: rework varying packing
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Reviewed-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
65df6122da
commit
1db86d8b62
|
@ -2381,6 +2381,7 @@ setup_input(struct ir3_context *ctx, nir_variable *in)
|
||||||
so->inputs[n].compmask = (1 << (ncomp + frac)) - 1;
|
so->inputs[n].compmask = (1 << (ncomp + frac)) - 1;
|
||||||
so->inputs_count = MAX2(so->inputs_count, n + 1);
|
so->inputs_count = MAX2(so->inputs_count, n + 1);
|
||||||
so->inputs[n].interpolate = in->data.interpolation;
|
so->inputs[n].interpolate = in->data.interpolation;
|
||||||
|
so->inputs[n].ncomp = ncomp;
|
||||||
|
|
||||||
if (ctx->so->type == MESA_SHADER_FRAGMENT) {
|
if (ctx->so->type == MESA_SHADER_FRAGMENT) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue