gallium: Fix z clear bug when TILE_CLEAR_OPTIMIZATION==0
authorBrian <brian.paul@tungstengraphics.com>
Thu, 31 Jan 2008 20:36:00 +0000 (13:36 -0700)
committerBrian <brian.paul@tungstengraphics.com>
Thu, 31 Jan 2008 20:41:14 +0000 (13:41 -0700)
src/mesa/pipe/softpipe/sp_clear.c

index 571f64b..8d295a3 100644 (file)
@@ -55,7 +55,9 @@ softpipe_clear(struct pipe_context *pipe, struct pipe_surface *ps,
 
    if (ps == sp_tile_cache_get_surface(softpipe->zsbuf_cache)) {
       sp_tile_cache_clear(softpipe->zsbuf_cache, clearValue);
+#if TILE_CLEAR_OPTIMIZATION
       return;
+#endif
    }
 
    for (i = 0; i < softpipe->framebuffer.num_cbufs; i++) {