summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2014-12-15 16:12:04 -0800
committerJason Ekstrand <jason.ekstrand@intel.com>2014-12-17 21:08:13 -0800
commit3bda22454919456e3f83621aeee1d154c08848ed (patch)
treeb4f36f1f8e8074890d63fc3c3a6bcea288d571cf
parent4019ecd117683073afcfd5df7ac6fffe30b25eed (diff)
i965/nir: Move the other lowering passes to before out-of-SSA
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 060912e8a5..2cf9780452 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -69,6 +69,12 @@ fs_visitor::emit_nir_code()
nir_remove_dead_variables(nir);
nir_validate_shader(nir);
+ nir_lower_samplers(nir, shader_prog, shader->base.Program);
+ nir_validate_shader(nir);
+
+ nir_lower_system_values(nir);
+ nir_validate_shader(nir);
+
nir_lower_atomics(nir);
nir_validate_shader(nir);
@@ -81,12 +87,6 @@ fs_visitor::emit_nir_code()
nir_lower_vec_to_movs(nir);
nir_validate_shader(nir);
- nir_lower_samplers(nir, shader_prog, shader->base.Program);
- nir_validate_shader(nir);
-
- nir_lower_system_values(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
*/