nir/lower_wpos_center: Look at derefs for modes
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 13 Dec 2018 21:03:28 +0000 (15:03 -0600)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 18 Dec 2018 19:13:28 +0000 (13:13 -0600)
commitcf7fb3980596f46c8376f1121043b98332eab62c
tree743b9e5e879e5e7f5191faf5c93cd5284b607f68
parent867fe35a16c309374d68530a415b1aca1d0f1975
nir/lower_wpos_center: 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_wpos_center.c