nir/deref: Skip over casts in fixup_deref_modes
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 28 Nov 2018 23:27:00 +0000 (17:27 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 8 Jan 2019 00:38:30 +0000 (00:38 +0000)
commit78d80f7db2fab78b1af96d5acf216d71448d7972
tree8883ba99ef756050db5dc4f31778622953f17c37
parentd8e3edb784d3afb313420fc8d58b491a57fad9c1
nir/deref: Skip over casts in fixup_deref_modes

This pass is used when, for instance, we lazily change the mode of
variables rather than replacing the variable with a new one.  Since we
only do this in cases where we know we have full deref chains, it's ok
to just skip them in fixup_deref_modes.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_deref.c