summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-11-07 11:03:12 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:19:01 -0800
commit2bd5a24a5e440ba0072528fdb32892cf8c935a8e (patch)
treea5db91a4640241ecd8946972c0a1b346f6e9f42f /src/mesa
parent10adf8fc858c21cd95b3e02a8d6abee563ca1046 (diff)
i965/fs_nir: Validate optimization passes
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp23
1 files 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 4dafe771aba..05fe3966292 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