[Mesa-dev] [PATCH] mesa: allow unlimited temporaries
e0425955 at student.tuwien.ac.at
Sun Sep 5 03:38:05 PDT 2010
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.
> Instead of just enlarging the limit, remove it completely and
> replace all arrays using it with dynamic allocation code.
> If no one objects, I'll push this.
How the ... is it using 1000 TEMPs ?
Wait, does it have large arrays and are they accessed indirectly ?
Can you implement* an INDEXABLE_TEMPORARY file instead so we can use
TGSI_FILE_TEMPORARY_ARRAY so that I can finally support this in nv50
without having to spill my whole GPR file to memory because I don't
know what part of TEMP can be accessed by the indirect load/store ?
* or wait for someone (possibly me, but unlikely) to implement ...
might be nicer, but, I'm not really objecting to the patch
More information about the mesa-dev