nir/lower_io_to_scalar: Look at derefs for modes
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 13 Dec 2018 21:01:05 +0000 (15:01 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 18 Dec 2018 19:13:28 +0000 (13:13 -0600)
commit867fe35a16c309374d68530a415b1aca1d0f1975
tree5e7d2b9176ea1663832cbe79338385c5d284c883
parent3fe0363dda84011a35ae1e7ed0a8e6aea49ae2f2
nir/lower_io_to_scalar: Look at derefs for modes

This is instead of looking all the way back to the variable which may
not exist for all derefs.  This makes this code properly ignore casts
with modes other than the mode[s] we care about (where casts aren't
allowed).

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