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

Marek Olšák maraeo at gmail.com
Mon Sep 6 09:42:09 PDT 2010

On Mon, Sep 6, 2010 at 5:05 PM, Luca Barbieri <luca at luca-barbieri.com>wrote:

> >>> 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.
> Are you sure?
> As far as I could tell, ir_to_mesa doesn't attempt to reuse
> temporaries, leaving the task to prog_optimize.c
> This means that a huge number of temporaries must be represented in Mesa
> IR.

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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20100906/17007620/attachment.htm>

More information about the mesa-dev mailing list