intel/nir: Only lower load/store derefs
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 23 Mar 2018 17:31:59 +0000 (10:31 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 23 Jun 2018 03:54:00 +0000 (20:54 -0700)
Everything else should already be handled.

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/intel/compiler/brw_nir.c

index a4cbec8aadfe20786a77fb5853f6f1a0b56d657a..d9642c7d4904f2b6947478cfe5dbaa18de1bd741 100644 (file)
@@ -766,7 +766,7 @@ 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_image_derefs);
+   OPT(nir_lower_deref_instrs, nir_lower_load_store_derefs);
 
    OPT(nir_lower_locals_to_regs);