[Mesa-dev] [PATCH 158/133] i965/nir: Do a final copy lowering pass before lowering locals to regs

Jason Ekstrand jason at jlekstrand.net
Wed Jan 14 15:28:38 PST 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 218cd5c..e8f398a 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -60,6 +60,9 @@ fs_visitor::emit_nir_code()
    } while (progress);
 
    /* Lower a bunch of stuff */
+   nir_lower_var_copies(nir);
+   nir_validate_shader(nir);
+
    nir_lower_io(nir);
    nir_validate_shader(nir);
 
-- 
2.2.1



More information about the mesa-dev mailing list