<div dir="ltr">On Mon, Aug 4, 2014 at 11:54 PM, Ilia Mirkin <span dir="ltr"><<a href="mailto:imirkin@alum.mit.edu" target="_blank">imirkin@alum.mit.edu</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Another apporach I've tried is to just use a TEMP register as the<br>
indirect offset here. Unfortunately this gets destroyed by<br>
st_glsl_to_tgsi's various optimizations which assume that temp<br>
registers can't be reladdr's and so messes up the values. I started<br>
adding support for that, but then quickly realized that was probably<br>
not the right thing to do.<br>
<br>
So... should I increase the number of address registers to 1? Or is<br>
there some other simple approach that I'm missing?<br>
<br>
Thanks,<br>
<br>
  -ilia<br></blockquote><div><br></div><div>The problem you are having with the optimizations in glsl_to_tgsi is because, as you say, it doesn't check the reladdr fields when calculating live intervals.  I'm currently in the middle of reworking the live interval calculation - if you don't mind waiting a day or two for me to finish the patch set and send it to the list, I can add that change to the reworked function in the patch set.<br>
</div></div></div></div>