[Mesa-dev] [PATCH] svga: remove incorrect buffer invalidation code

Brian Paul brianp at vmware.com
Mon Aug 15 22:43:22 UTC 2016


Fixes regression with team_fortress_2 trace.
This change has been in our in-house tree for some time.
---
 src/gallium/drivers/svga/svga_screen_cache.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_screen_cache.c b/src/gallium/drivers/svga/svga_screen_cache.c
index bce46df..86a0413 100644
--- a/src/gallium/drivers/svga/svga_screen_cache.c
+++ b/src/gallium/drivers/svga/svga_screen_cache.c
@@ -558,11 +558,6 @@ svga_screen_surface_destroy(struct svga_screen *svgascreen,
     * that case.
     */
    if (SVGA_SURFACE_CACHE_ENABLED && key->cachable) {
-
-      /* Invalidate the surface before putting it into the recycle pool */
-      if (key->format != SVGA3D_BUFFER)
-         sws->surface_invalidate(sws, *p_handle);
-
       svga_screen_cache_add(svgascreen, key, p_handle);
    }
    else {
-- 
1.9.1



More information about the mesa-dev mailing list