nir/gl_nir_linker: Call add_vars_with_modes once for GL_PROGRAM_INPUT
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 21 Jul 2020 16:55:27 +0000 (11:55 -0500)
committerMarge Bot <eric+marge@anholt.net>
Wed, 29 Jul 2020 17:38:58 +0000 (17:38 +0000)
commitfc1363cc6039110f9dcd6a5c7cf8b8453042823b
treec9b1ee2b1653e74839055cd40d6aecc42aefb74b
parent789ec95dcd18c155a9578b5d5f56cb0aab74c763
nir/gl_nir_linker: Call add_vars_with_modes once for GL_PROGRAM_INPUT

Now that nir_foreach_variable_with_modes can handle multiple modes at
one time, we can simplify things a bit and only walk the list once.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5966>
src/compiler/glsl/gl_nir_linker.c