[Mesa-dev] [PATCH 3/9] i965/nir: Use the late optimizations

Jason Ekstrand jason at jlekstrand.net
Mon Mar 23 20:13:03 PDT 2015


---
 src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 69f296c..fbcfc65 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -129,6 +129,9 @@ fs_visitor::emit_nir_code()
 
    nir_optimize(nir);
 
+   nir_opt_algebraic_late(nir);
+   nir_validate_shader(nir);
+
    nir_lower_locals_to_regs(nir);
    nir_validate_shader(nir);
 
-- 
2.3.3



More information about the mesa-dev mailing list