diff options
author | Jason Ekstrand <[email protected]> | 2019-01-11 14:33:17 -0600 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2019-01-12 17:55:49 -0600 |
commit | 24c8108ea6ac2fb71f9fff7c05354114319c0fc9 (patch) | |
tree | a671acdb65525055a45d891e353616c9e0500b98 /src/intel | |
parent | e57e26121a4b0d6fb836e981da039bd1ef0ebf06 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_nir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 749c00ebcc6..92d7fe4bede 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 |