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 571f64b38d7b5edffbe6bd38fdb83ae1a12f6727..8d295a30ca6e3ecfb1425705f42e929088780512 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++) {