nir/lower_two_sided_color: Fix picking of new driver location.
authorEric Anholt <eric@anholt.net>
Tue, 21 Apr 2020 23:07:55 +0000 (16:07 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Apr 2020 18:52:46 +0000 (18:52 +0000)
commit91668ae8391d3e4d14f5cfe60d2755385a81a64d
treea8610102b42c5766a49c857bd259ef1cfaf488f3
parent49ce749d0e25d957c6a38f1165b63a31baed708d
nir/lower_two_sided_color: Fix picking of new driver location.

We have shader->num_inputs for "last used input + 1" already, which
respects struct/matrix varyings.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4670>
src/compiler/nir/nir_lower_two_sided_color.c