[Mesa-dev] [PATCH] mesa: allow unlimited temporaries

Eric Anholt eric at anholt.net
Tue Sep 7 09:44:06 PDT 2010


On Sun, 5 Sep 2010 09:58:40 -0700, Ian Romanick <idr at paranormal-entertainment.com> wrote:
> On Sep 5, 2010, at 3:38 AM, Christoph Bumiller <e0425955 at student.tuwien.ac.at 
>  > wrote:
> 
> > On 09/05/2010 01:59 AM, Luca Barbieri wrote:
> >> Currently Mesa has a limit of 1024 temporaries.
> >>
> >> Unfortunately, some GLSL shaders such as an SSAO fragment
> >> post-processing shader in Unigine Tropics, go over this limit at
> >> least before program optimizations are applied.
> 
> By the time we generate Mesa IR all the optimizations should be done.

No.  Mesa IR does dead code elimination and copy propagation.
ir_to_mesa relies on this in its code generation.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100907/7ac04d9e/attachment.pgp>


More information about the mesa-dev mailing list