From: Jason Ekstrand Date: Wed, 22 Oct 2014 18:24:33 +0000 (-0700) Subject: i965/fs_nir: Convert the shader to/from SSA X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=63eb32950e64715a7a686ae9da82b55954db9ab8;p=mesa.git i965/fs_nir: Convert the shader to/from SSA Reviewed-by: Connor Abbott --- 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 */