vc4: Use NIR shader's num_outputs for generating our new output.
authorEric Anholt <eric@anholt.net>
Tue, 21 Apr 2020 23:15:03 +0000 (16:15 -0700)
committerMarge Bot <eric+marge@anholt.net>
Thu, 23 Apr 2020 18:52:46 +0000 (18:52 +0000)
commit0d6019302eb772b1c399cecc3f5abf1940f0c0d0
tree7840f087bef22be690f310f2c018a38a96b60557
parent5593d80a2c0db362e80c7733bc4a3f2899c288bf
vc4: Use NIR shader's num_outputs for generating our new output.

Simplifies the code (we don't have struct or matrix varyings that would
have previously made this code break), and makes sure we keep
s->num_outputs accurate.

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/gallium/drivers/vc4/vc4_nir_lower_blend.c