summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2015-03-09 01:58:52 -0700
committerKenneth Graunke <[email protected]>2015-03-12 08:29:48 -0700
commit1f0067811c059fb3b284a2169e94fbdec7a4b909 (patch)
tree13d5633c6ab141c10ab55f625b33198eec77bbdc /src
parent1d8ef6ba606a88239de633e5abcc19471c9d3cf4 (diff)
i965/nir: Optimize after nir_lower_var_copies().
Array variable copy splitting generates a bunch of stuff we want to clean up before proceeding. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Jason Ekstrand <[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 28ef4178aab..ef836939705 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -102,6 +102,9 @@ fs_visitor::emit_nir_code()
nir_lower_var_copies(nir);
nir_validate_shader(nir);
+ /* Get rid of split copies */
+ nir_optimize(nir);
+
nir_lower_io(nir);
nir_validate_shader(nir);