[Mesa-dev] [PATCH 063/133] i965/fs_nir: Validate optimization passes
Jason Ekstrand
jason at jlekstrand.net
Mon Dec 15 22:05:13 PST 2014
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 23 +++++++++++++++--------
1 file changed, 15 insertions(+), 8 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 561c709..d7a2d0b 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -54,14 +54,21 @@ 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);
+ if (1) {
+ nir_convert_to_ssa(nir);
+ nir_validate_shader(nir);
+ nir_copy_prop(nir);
+ nir_validate_shader(nir);
+ nir_opt_dce(nir);
+ nir_validate_shader(nir);
+ nir_print_shader(nir, stderr);
+
+ nir_convert_from_ssa(nir);
+ nir_print_shader(nir, stderr);
+ nir_validate_shader(nir);
+ nir_lower_vec_to_movs(nir);
+ nir_validate_shader(nir);
+ }
/* 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