[Mesa-dev] [PATCH 6/7] i965/fs/nir: enable the dead control flow optimization
Connor Abbott
cwabbott0 at gmail.com
Tue Jul 21 21:53:31 PDT 2015
From: Connor Abbott <cwabbott0 at gmail.com>
Doesn't do anything on the public shader-db.
Signed-off-by: Connor Abbott <connor.w.abbott at intel.com>
---
src/mesa/drivers/dri/i965/brw_nir.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 3e154c1..df3be22 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -52,6 +52,8 @@ nir_optimize(nir_shader *nir)
nir_validate_shader(nir);
progress |= nir_opt_constant_folding(nir);
nir_validate_shader(nir);
+ progress |= nir_opt_dead_cf(nir);
+ nir_validate_shader(nir);
progress |= nir_opt_remove_phis(nir);
nir_validate_shader(nir);
} while (progress);
--
2.4.3
More information about the mesa-dev
mailing list