svga: re-enable deleted surface caching
authorBrian Paul <brianp@vmware.com>
Thu, 8 Dec 2011 00:11:00 +0000 (17:11 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 23 Feb 2012 14:49:07 +0000 (07:49 -0700)
commit09d0fa5be8da0087e6b8d239aee5d70e97655768
tree8d2f43e1dbfd3a8f7cc9784f88c0239b8d8b5583
parent500e7c5860b4d6fdd39f70197511a746eb32910a
svga: re-enable deleted surface caching

Basically, instead of immediately freeing deleted surfaces, hang onto
them in a cache to do quick re-allocation.  This helps when surfaces
are frequently destroyed and then reallocated a bit later.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
src/gallium/drivers/svga/svga_resource_texture.c