llvmpipe: Texture cache is read-only. No need to flush.
[mesa.git] / src / gallium / drivers / llvmpipe / lp_flush.c
index 866d4fb0996111e5df6e9aedd4e159c8b7846ed0..b5c1c95bb73fea36b2631b5ad6a80c5662cb8101 100644 (file)
@@ -37,6 +37,7 @@
 #include "lp_surface.h"
 #include "lp_state.h"
 #include "lp_tile_cache.h"
+#include "lp_tex_cache.h"
 #include "lp_winsys.h"
 
 
@@ -50,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_tile_cache(llvmpipe->tex_cache[i]);
-      }
-   }
-
    if (flags & PIPE_FLUSH_SWAPBUFFERS) {
       /* If this is a swapbuffers, just flush color buffers.
        *
@@ -79,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;
    }