nir/deref: Don't try to compare derefs containing casts
authorJason Ekstrand <jason@jlekstrand.net>
Sat, 25 Jul 2020 01:27:37 +0000 (20:27 -0500)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 Aug 2020 21:49:25 +0000 (21:49 +0000)
commit611f654fcf715364b65ca690c0521c3e3038824f
treee3f15dde71f6705afc6ac27bee862ea5e53d2fb5
parentee2f21b10dc786c83ff5dad716502429f6b26fb9
nir/deref: Don't try to compare derefs containing casts

One day, we may want copy_prop_vars or other passes to be able to see
through certain types of casts such as when someone casts a uint64_t to
a uvec2.  However, for now we should just avoid casts all together.

Fixes: d8e3edb784d3a "nir/deref: Support casts and ptr_as_array in..."
Tested-by: Jesse Natalie <jenatali@microsoft.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6072>
src/compiler/nir/nir_deref.c