From: Brian Date: Thu, 31 Jan 2008 20:36:00 +0000 (-0700) Subject: gallium: Fix z clear bug when TILE_CLEAR_OPTIMIZATION==0 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5ee218a02186188f5819e5a4e1e15296bbd57322;p=mesa.git gallium: Fix z clear bug when TILE_CLEAR_OPTIMIZATION==0 --- diff --git a/src/mesa/pipe/softpipe/sp_clear.c b/src/mesa/pipe/softpipe/sp_clear.c index 571f64b38d7..8d295a30ca6 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++) {