summaryrefslogtreecommitdiffstats
path: root/src/freedreno
diff options
context:
space:
mode:
authorJonathan Marek <[email protected]>2019-05-31 12:17:06 -0400
committerJuan A. Suarez Romero <[email protected]>2019-06-03 08:20:25 +0000
commit90d045f993ffea449560b8d73788e0a8aec20602 (patch)
treef2b55e66dec4c64b6f6ccd2af5724e14b5f2651b /src/freedreno
parentb2c5c1666870d23df395e97642e67be57fe4f4de (diff)
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 <[email protected]> Reviewed-by: Rob Clark <[email protected]> (cherry picked from commit 1db86d8b62860380c34af77ae62b019ed2376443)
Diffstat (limited to 'src/freedreno')
-rw-r--r--src/freedreno/ir3/ir3_compiler_nir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c
index 90fc77dbb35..b8494d8aece 100644
--- a/src/freedreno/ir3/ir3_compiler_nir.c
+++ b/src/freedreno/ir3/ir3_compiler_nir.c
@@ -2376,6 +2376,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) {