From 63eb32950e64715a7a686ae9da82b55954db9ab8 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 22 Oct 2014 11:24:33 -0700 Subject: i965/fs_nir: Convert the shader to/from SSA Reviewed-by: Connor Abbott --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/mesa/drivers/dri/i965') diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 6fa4527522a..d27ec356ce8 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 */ -- cgit v1.2.3