diff options
author | Brian Paul <[email protected]> | 2011-12-07 17:11:00 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-02-23 07:49:07 -0700 |
commit | 09d0fa5be8da0087e6b8d239aee5d70e97655768 (patch) | |
tree | 8d2f43e1dbfd3a8f7cc9784f88c0239b8d8b5583 /src | |
parent | 500e7c5860b4d6fdd39f70197511a746eb32910a (diff) |
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 <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/svga/svga_resource_texture.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |