nir/lower_tex: Always copy deref and offset sources
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 27 Mar 2018 16:32:57 +0000 (09:32 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:15:56 +0000 (20:15 -0700)
commita649610ace3d31f31cbabc7e5152bed183b68a77
tree22de507ae5d99470bb3565337ce75f6df7e1ea6e
parent261fe676e589ef106eb144e3051a5441855bbe59
nir/lower_tex: Always copy deref and offset sources

This should make nir_lower_tex properly handle deref instructions as
well as make it more correct when texture arrays are used and it's
called after lowering samplers to binding table indices.

Acked-by: Rob Clark <robdclark@gmail.com>
Acked-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Acked-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/nir/nir_lower_tex.c