aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga/svga_screen_cache.c
Commit message (Collapse)AuthorAgeFilesLines
* svga: add svga_screen_cache_dump() debug helperBrian Paul2012-10-171-0/+34
|
* svga: add some comments in svga_screen_cache.cBrian Paul2012-08-021-1/+14
|
* svga: whitespace, formatting fixesBrian Paul2012-08-021-52/+54
|
* svga: init pointer to NULL to silence MSVC warningBrian Paul2012-06-221-1/+1
|
* svga: implement surface cache size limitBrian Paul2012-02-231-1/+131
| | | | | | | | | | | | | 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]>
* svga: Always pass SVGA3D_SURFACE_HINT_DYNAMIC.José Fonseca2009-12-111-0/+9
| | | | | | | | | Since we're reusing buffers we're effectively transforming all of them into dynamic buffers. It would be nice to not cache long lived static buffers. But there is no way to detect the long lived from short lived ones yet. A good heuristic would be buffer size.
* svga: add DEBUG_CACHE optionKeith Whitwell2009-11-271-8/+22
|
* svga: hash the whole key, not just the first four bytesKeith Whitwell2009-11-261-3/+3
|
* svga: cache textures as well as buffersKeith Whitwell2009-11-241-38/+55
|
* svga: Add svga driverJakob Bornecrantz2009-11-171-0/+307