summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-01-14 15:25:52 -0800
committerJason Ekstrand <[email protected]>2015-01-15 07:20:24 -0800
commitc56adc68e2e75276785fd933b47621c87f9fd3ee (patch)
treea2a963d5919b7f89750119817ff485f92c4ca3a9 /src
parent0f8531097523b3c997e0c01a2fb42391248f159f (diff)
i965/nir: Do a final copy lowering pass before lowering locals to regs
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_nir.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index 218cd5ce172..e8f398a7138 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);