nir: Rework lower_locals_to_regs to use deref instructions
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 3 Apr 2018 00:41:28 +0000 (17:41 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:54:00 +0000 (20:54 -0700)
commit5a02ffb733eccb03fdfa568cc33a231d9210c4ae
tree153080483bab91160447df976285cc6433c7b95a
parent2fa7a4a54185cd64cb26c2d14339b95890b69da0
nir: Rework lower_locals_to_regs to use deref instructions

This completely reworks the pass to support deref instructions and
delete support for old deref chains

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_locals_to_regs.c
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
src/intel/compiler/brw_nir.c