summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-31 13:36:00 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-31 13:41:14 -0700
commit9536314a6c99d0acc249180034865b5cfb927e9d (patch)
tree22a840cc190f10728ae5171a805d8851d2d846e4
parentc36cdc61561fee21108f0a68ca661f0d8c7f5d94 (diff)
gallium: Fix z clear bug when TILE_CLEAR_OPTIMIZATION==0
-rw-r--r--src/mesa/pipe/softpipe/sp_clear.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/pipe/softpipe/sp_clear.c b/src/mesa/pipe/softpipe/sp_clear.c
index 571f64b38d..8d295a30ca 100644
--- a/src/mesa/pipe/softpipe/sp_clear.c
+++ b/src/mesa/pipe/softpipe/sp_clear.c
@@ -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++) {