diff options
author | Brian Paul <[email protected]> | 2011-12-07 16:57:11 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-23 07:49:06 -0700 |
commit | 500e7c5860b4d6fdd39f70197511a746eb32910a (patch) | |
tree | fb96a9730a66df1da7eeaaa8ce48f23b3da1c410 /src/glx/indirect_vertex_array.c | |
parent | 32f669e7fc17ff89cf132b7d42c72de75625d32a (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/glx/indirect_vertex_array.c')
0 files changed, 0 insertions, 0 deletions