<div dir="ltr">I'm not super-familiar with Connor's to-SSA pass, but I think that does what you want.<br><br>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 Wed, Jan 28, 2015 at 5:09 PM, Eric Anholt <span dir="ltr"><<a href="mailto:eric@anholt.net" target="_blank">eric@anholt.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
The i965 driver apparently only has things all in ssa or all in non-ssa, while<br>
for TGSI I ended up doing some things directly in SSA before the to-SSA pass.<br>
<br>
src/glsl/nir/nir_to_ssa.c | 3 +++<br>
 1 file changed, 3 insertions(+)<br>
<br>
diff --git a/src/glsl/nir/nir_to_ssa.c b/src/glsl/nir/nir_to_ssa.c<br>
index 9c577fa..dbe1699 100644<br>
--- a/src/glsl/nir/nir_to_ssa.c<br>
+++ b/src/glsl/nir/nir_to_ssa.c<br>
@@ -239,6 +239,9 @@ rewrite_alu_instr_forward(nir_alu_instr *instr, rewrite_state *state)<br>
<br>
    nir_foreach_src(&instr->instr, rewrite_use, state);<br>
<br>
+   if (instr->dest.dest.is_ssa)<br>
+      return;<br>
+<br>
    nir_register *reg = instr->dest.dest.reg.reg;<br>
    unsigned index = reg->index;<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
2.1.4<br>
<br>
_______________________________________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">http://lists.freedesktop.org/mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>