From ab24e1270674192d2aeb4ba0cc39497edb3342f8 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 3 Feb 2015 01:50:49 -0500 Subject: [PATCH] i965/nir: use redundant phi optimization Reviewed-by: Jason Ekstrand Tested-by: Jason Ekstrand Signed-off-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 90980c78800..c3c268ca1b3 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -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_remove_phis(nir); + nir_validate_shader(nir); } while (progress); } -- 2.30.2