[Mesa-dev] [PATCH 043/133] i965/fs_nir: Convert the shader to/from SSA
Jason Ekstrand
jason at jlekstrand.net
Mon Dec 15 22:04:53 PST 2014
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index efe06d7..99094c7 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -54,6 +54,15 @@ fs_visitor::emit_nir_code()
if (1)
nir_print_shader(nir, stderr);
+ nir_convert_to_ssa(nir);
+ nir_copy_prop(nir);
+ nir_opt_dce(nir);
+ nir_print_shader(nir, stderr);
+
+ nir_convert_from_ssa(nir);
+ nir_lower_vec_to_movs(nir);
+ nir_print_shader(nir, stderr);
+
/* emit the arrays used for inputs and outputs - load/store intrinsics will
* be converted to reads/writes of these arrays
*/
--
2.2.0
More information about the mesa-dev
mailing list