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>
This commit is contained in:
Jason Ekstrand
2018-04-02 17:41:28 -07:00
parent 2fa7a4a541
commit 5a02ffb733
3 changed files with 91 additions and 105 deletions

View File

@@ -766,8 +766,6 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
OPT(nir_opt_dce);
OPT(nir_opt_move_comparisons);
OPT(nir_lower_deref_instrs, nir_lower_load_store_derefs);
OPT(nir_lower_locals_to_regs);
if (unlikely(debug_enabled)) {