svga: remove incorrect buffer invalidation code
[mesa.git] / src / gallium / drivers / svga / svga_screen_cache.c
index bce46df91d7a8e9ea31e8313d90a7235a881967a..86a04136e6457a5e35d8bcf6dc1ef67a3be8d44f 100644 (file)
@@ -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 {