Module: Mesa
Branch: master
Commit: 1db86d8b62860380c34af77ae62b019ed2376443
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1db86d8b62860380c34af77ae62b019ed2376443

Author: Jonathan Marek <[email protected]>
Date:   Fri May 31 12:17:06 2019 -0400

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]>

---

 src/freedreno/ir3/ir3_compiler_nir.c | 1 +
 1 file changed, 1 insertion(+)

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) {
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to