nir: Move propagation of cast derefs to a new nir_opt_deref pass
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 13 Dec 2018 17:08:13 +0000 (11:08 -0600)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 8 Jan 2019 00:38:30 +0000 (00:38 +0000)
commitfc9c4f89b85c0116c0dc22a3eaf25f5df88ad657
treed66f7211155d2ba45fb2fd269233a9249092b9cd
parentbf1a1eed882980a1cd08482386e3a001ce64a5a4
nir: Move propagation of cast derefs to a new nir_opt_deref pass

We're going to want to do more deref optimizations going forward and
this gives us a central place to do them.  Also, cast propagation will
get a bit more complicated with the addition of ptr_as_array derefs.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/amd/vulkan/radv_shader.c
src/compiler/nir/nir.h
src/compiler/nir/nir_deref.c
src/compiler/nir/nir_inline_functions.c
src/compiler/nir/nir_opt_copy_propagate.c
src/intel/vulkan/anv_pipeline.c
src/mesa/main/glspirv.c