<div dir="ltr">On Tue, Aug 5, 2014 at 3:23 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:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class=""><div class="h5">On Tue, Aug 5, 2014 at 4:14 PM, Bryan Cain <<a href="mailto:bryancain3@gmail.com">bryancain3@gmail.com</a>> wrote:<br>

> On Mon, Aug 4, 2014 at 11:54 PM, Ilia Mirkin <<a href="mailto:imirkin@alum.mit.edu">imirkin@alum.mit.edu</a>> wrote:<br>
>><br>
>> 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>
><br>
><br>
> The problem you are having with the optimizations in glsl_to_tgsi is<br>
> because, as you say, it doesn't check the reladdr fields when calculating<br>
> live intervals.  I'm currently in the middle of reworking the live interval<br>
> calculation - if you don't mind waiting a day or two for me to finish the<br>
> patch set and send it to the list, I can add that change to the reworked<br>
> function in the patch set.<br>
<br>
</div></div>I can certainly wait a little while. However from everything I can<br>
tell, all current reladdr's are in the ADDR register file, so perhaps<br>
I should just stick with that?<br>
</blockquote></div><br><div class="im">Either way is workable from glsl_to_tgsi's standpoint.  I assume the 
gallium interface people have a better idea of what the preferred 
solution is.<br><br></div>[Resending because I forgot to CC the list before.]<br></div></div>