summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_chipset.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-12-07 16:57:11 -0700
committerBrian Paul <[email protected]>2012-02-23 07:49:06 -0700
commit500e7c5860b4d6fdd39f70197511a746eb32910a (patch)
treefb96a9730a66df1da7eeaaa8ce48f23b3da1c410 /src/gallium/drivers/r300/r300_chipset.h
parent32f669e7fc17ff89cf132b7d42c72de75625d32a (diff)
svga: implement surface cache size limit
There was a SVGA_HOST_SURFACE_CACHE_BYTES symbol, but it was never used. Now when we go to add a newly deleted surface to the cache we check if the cache size would be exceeded. If so, try to free the least recently "unused" surfaces until the cache is smaller. If we can't do that, simply don't cache the newly deleted surface. The alternative involves flushing and waiting and we don't want to do that. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r300/r300_chipset.h')
0 files changed, 0 insertions, 0 deletions