nir/linker: fix ARRAY_SIZE query with xfb varyings
authorAlejandro Piñeiro <apinheiro@igalia.com>
Thu, 7 Mar 2019 15:57:10 +0000 (16:57 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 8 Mar 2019 14:00:50 +0000 (15:00 +0100)
commit686b7b1d48fea0ff62bdb177f9696316a02d2b07
tree79e80559d25bdb3f1a24d6134002c7ecaea94509
parentde31fb2f4f75b253e7d9e4617da6c1d04ae18df9
nir/linker: fix ARRAY_SIZE query with xfb varyings

For a non-array varying, it is expecting ARRAY_SIZE as 1, instead of 0.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/glsl/gl_nir_link_xfb.c