nir: rework nir_link_opt_varyings()
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 19 Dec 2018 09:09:42 +0000 (20:09 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 2 Jan 2019 01:19:17 +0000 (12:19 +1100)
commitd828694b804b3bd28e8ef41499dc56b259fc2da2
tree855266e3cf5b20a4659aa11fcab1b89ff54bf3f8
parentc0aba8b0dc7b3e6cde019a0f2b30bb3a62d666ce
nir: rework nir_link_opt_varyings()

This just cleans things up a little and make things more safe for
derefs.

Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/compiler/nir/nir_linking_helpers.c