nir: fix crash in varying packing on interface mismatch
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 27 Mar 2020 15:17:54 +0000 (02:17 +1100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 31 Mar 2020 23:43:31 +0000 (23:43 +0000)
commit0f4a81430e65e09db13d2472fd46105a95ea625d
treef871272a02a8f08b2e6cfe1e0092598ade52d383
parent31011c7a39f0d054b97b730c8928176d72c9707c
nir: fix crash in varying packing on interface mismatch

For example when the outputs are scalars but the inputs are struct
members.

Fixes: 26aa460940f6 ("nir: rewrite varying component packing")
Reviewed-By: Timur Kristóf <timur.kristof@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4351>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4351>
src/compiler/nir/nir_linking_helpers.c