<div class="gmail_quote">On Mon, Sep 6, 2010 at 5:05 PM, Luca Barbieri <span dir="ltr"><<a href="mailto:luca@luca-barbieri.com">luca@luca-barbieri.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">>>> Unfortunately, some GLSL shaders such as an SSAO fragment<br>
>>> post-processing shader in Unigine Tropics, go over this limit at<br>
>>> least before program optimizations are applied.<br>
><br>
> By the time we generate Mesa IR all the optimizations should be done.<br>
<br>
</div>Are you sure?<br>
<br>
As far as I could tell, ir_to_mesa doesn't attempt to reuse<br>
temporaries, leaving the task to prog_optimize.c<br>
This means that a huge number of temporaries must be represented in Mesa IR.<br></blockquote><div><br>And prog_optimize can't do anything if there are temporaries with indirect addressing. We need either the temporary array file or to do register allocation in GLSL IR.<br>
<br>Marek<br></div></div>