summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-12-15 16:12:04 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:20:22 -0800
commit951a7f23a076c1570f68b50fc7d03a33eb5145e7 (patch)
tree57456aeb2a6690cbbe710c19f500b204e6bd9525 /src
parent5c16be1c521e4bad670bc81134526a568b82a4a7 (diff)
i965/nir: Move the other lowering passes to before out-of-SSA
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src')
-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 0fed8a1f1b3..c218b722f8d 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
*/