Mesa (master): intel/nir: Move lower_mem_access_bit_sizes to postprocess_nir
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Sat Mar 9 04:03:57 UTC 2019
Module: Mesa
Branch: master
Commit: 179d254cbaaa3f4ffcd5f9fef73cb413b7dc0e72
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=179d254cbaaa3f4ffcd5f9fef73cb413b7dc0e72
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Fri Jan 11 20:19:18 2019 -0600
intel/nir: Move lower_mem_access_bit_sizes to postprocess_nir
It doesn't really matter where this pass goes as long as it's after we
call nir_lower_explicit_io and before we go into the back-end. Putting
it brw_postprocess_nir lets us move nir_lower_explicit_io significantly
later in the pipeline.
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira at intel.com>
---
src/intel/compiler/brw_nir.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
index 0f929947696..ae239de6117 100644
--- a/src/intel/compiler/brw_nir.c
+++ b/src/intel/compiler/brw_nir.c
@@ -740,8 +740,6 @@ brw_preprocess_nir(const struct brw_compiler *compiler, nir_shader *nir,
brw_nir_no_indirect_mask(compiler, nir->info.stage);
OPT(nir_lower_indirect_derefs, indirect_mask);
- OPT(brw_nir_lower_mem_access_bit_sizes);
-
/* Get rid of split copies */
nir = brw_nir_optimize(nir, compiler, is_scalar, false);
@@ -809,6 +807,7 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
UNUSED bool progress; /* Written by OPT */
+ OPT(brw_nir_lower_mem_access_bit_sizes);
do {
progress = false;
More information about the mesa-commit
mailing list