diff options
author | Connor Abbott <[email protected]> | 2015-02-03 01:50:49 -0500 |
---|---|---|
committer | Connor Abbott <[email protected]> | 2015-02-03 16:00:13 -0500 |
commit | ab24e1270674192d2aeb4ba0cc39497edb3342f8 (patch) | |
tree | 2baac3409c8e12c393d6f96be6199147c7e53361 /src/mesa/drivers/dri | |
parent | a135f340807139d874ae1d460009cf94786eb13a (diff) |
i965/nir: use redundant phi optimization
Reviewed-by: Jason Ekstrand <[email protected]>
Tested-by: Jason Ekstrand <[email protected]>
Signed-off-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |