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>
This commit is contained in:
Brian Paul 2011-12-07 17:11:00 -07:00
parent 500e7c5860
commit 09d0fa5be8

View file

@ -433,8 +433,7 @@ svga_texture_create(struct pipe_screen *screen,
tex->key.numFaces = 1;
}
/* XXX: Disabled for now */
tex->key.cachable = 0;
tex->key.cachable = 1;
if (template->bind & PIPE_BIND_SAMPLER_VIEW)
tex->key.flags |= SVGA3D_SURFACE_HINT_TEXTURE;