Mesa (master): intel/nir: Call nir_opt_deref in brw_nir_optimize

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Jan 12 23:56:26 UTC 2019


Module: Mesa
Branch: master
Commit: 24c8108ea6ac2fb71f9fff7c05354114319c0fc9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=24c8108ea6ac2fb71f9fff7c05354114319c0fc9

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Fri Jan 11 14:33:17 2019 -0600

intel/nir: Call nir_opt_deref in brw_nir_optimize

It's an optimization so we should probably be calling it in the
optimization loop.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>

---

 src/intel/compiler/brw_nir.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
index 749c00ebcc..92d7fe4bed 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -544,6 +544,7 @@ brw_nir_optimize(nir_shader *nir, const struct brw_compiler *compiler,
       progress = false;
       OPT(nir_split_array_vars, nir_var_function);
       OPT(nir_shrink_vec_array_vars, nir_var_function);
+      OPT(nir_opt_deref);
       OPT(nir_lower_vars_to_ssa);
       if (allow_copies) {
          /* Only run this pass in the first call to brw_nir_optimize.  Later




More information about the mesa-commit mailing list