nir: Be sure to fix deref modes after demoting shader i/o vars to global.
authorEric Anholt <eric@anholt.net>
Wed, 26 Sep 2018 18:33:09 +0000 (11:33 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 16 Oct 2018 00:16:44 +0000 (17:16 -0700)
commitb788ab6d5c8e87743c345ee8c6131db628b87a8e
tree915bbf198330db810ca5ef7c5d73f901c09f5db4
parentdda1ae9b3cb9ea39c9435fba01c6c31a99c4d35e
nir: Be sure to fix deref modes after demoting shader i/o vars to global.

Fixes assertion failures when calling nir_remove_unused_varyings() or
nir_remove_unused_io_vars().

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_linking_helpers.c