<div dir="ltr"><div>LGTM<br><br></div>Reviewed-by: Jason Ekstrand <<a href="mailto:jason.ekstrand@intel.com">jason.ekstrand@intel.com</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 9, 2015 at 1:58 AM, Kenneth Graunke <span dir="ltr"><<a href="mailto:kenneth@whitecape.org" target="_blank">kenneth@whitecape.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Array variable copy splitting generates a bunch of stuff we want to<br>
clean up before proceeding.<br>
<br>
Signed-off-by: Kenneth Graunke <<a href="mailto:kenneth@whitecape.org">kenneth@whitecape.org</a>><br>
Cc: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br>
---<br>
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 3 +++<br>
1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp<br>
index 249e59c..fbdfc22 100644<br>
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp<br>
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp<br>
@@ -102,6 +102,9 @@ fs_visitor::emit_nir_code()<br>
nir_lower_var_copies(nir);<br>
nir_validate_shader(nir);<br>
<br>
+ /* Get rid of split copies */<br>
+ nir_optimize(nir);<br>
+<br>
nir_lower_io(nir);<br>
nir_validate_shader(nir);<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.2.1<br>
<br>
</font></span></blockquote></div><br></div>