llvmpipe: Texture cache is read-only. No need to flush.
[mesa.git] / src / gallium / drivers / llvmpipe / lp_flush.c
index f3b43cfce9831930e7f13a23a328fc83ddcc7aab..b5c1c95bb73fea36b2631b5ad6a80c5662cb8101 100644 (file)
@@ -51,12 +51,6 @@ llvmpipe_flush( struct pipe_context *pipe,
 
    draw_flush(llvmpipe->draw);
 
-   if (flags & PIPE_FLUSH_TEXTURE_CACHE) {
-      for (i = 0; i < llvmpipe->num_textures; i++) {
-         lp_flush_tex_tile_cache(llvmpipe->tex_cache[i]);
-      }
-   }
-
    if (flags & PIPE_FLUSH_SWAPBUFFERS) {
       /* If this is a swapbuffers, just flush color buffers.
        *
@@ -80,8 +74,7 @@ llvmpipe_flush( struct pipe_context *pipe,
          if (llvmpipe->cbuf_cache[i])
             lp_flush_tile_cache(llvmpipe->cbuf_cache[i]);
 
-      if (llvmpipe->zsbuf_cache)
-         lp_flush_tile_cache(llvmpipe->zsbuf_cache);
+      /* FIXME: untile zsbuf! */
      
       llvmpipe->dirty_render_cache = FALSE;
    }