glsl/nir: iterate the system values list when adding varyings
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 5 Dec 2019 04:01:14 +0000 (15:01 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Thu, 5 Dec 2019 22:04:31 +0000 (22:04 +0000)
commit1abca2b3c84a42ab64c466bc209db42c41bba5e3
tree1d1a4389c25050d156ed381d64d8bfd624da9e33
parent201ed4b4e7e02b32f511b52ae94019792284f0a1
glsl/nir: iterate the system values list when adding varyings

Iterate the system values list when adding varyings to the program
resource list in the NIR linker. This is needed to avoid CTS
regressions when using the NIR to build the GLSL resource list in
an upcoming series. Presumably it also fixes a bug with the current
ARB_gl_spirv support.

Fixes: ffdb44d3a0a2 ("nir/linker: Add inputs/outputs to the program resource list")
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
src/compiler/glsl/gl_nir_linker.c