projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65df612
)
freedreno/ir3: fix input ncomp for vertex shaders
author
Jonathan Marek
<jonathan@marek.ca>
Fri, 31 May 2019 16:17:06 +0000
(12:17 -0400)
committer
Jonathan 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
patch
|
blob
|
history
diff --git
a/src/freedreno/ir3/ir3_compiler_nir.c
b/src/freedreno/ir3/ir3_compiler_nir.c
index c055f0f438934f374136c34cd570887d45ec5961..6851f311d5a046cddac3aff3f6a243db50fe47ae 100644
(file)
--- 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) {