diff options
author | Jason Ekstrand <[email protected]> | 2014-10-22 11:24:33 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:19:00 -0800 |
commit | 63eb32950e64715a7a686ae9da82b55954db9ab8 (patch) | |
tree | 2b65f958df873d09fb3d1a2e57b2b5b9f4e44776 /src/mesa | |
parent | 9d986d19d0412759ecb10c0d8752bb0276d5c5f8 (diff) |
i965/fs_nir: Convert the shader to/from SSA
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 9 |
1 files changed, 9 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 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 */ |