mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 09:50:08 +01:00
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:
parent
500e7c5860
commit
09d0fa5be8
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue