From: Brian Paul Date: Thu, 8 Dec 2011 00:11:00 +0000 (-0700) Subject: svga: re-enable deleted surface caching X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=09d0fa5be8da0087e6b8d239aee5d70e97655768;p=mesa.git 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 --- diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c index 92286f90fb7..c5b830660f5 100644 --- a/src/gallium/drivers/svga/svga_resource_texture.c +++ b/src/gallium/drivers/svga/svga_resource_texture.c @@ -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;