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-Tag: 062012170305~17580^2~390^2~2751 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9536314a6c99d0acc249180034865b5cfb927e9d;p=profile%2Fivi%2Fmesa.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 571f64b..8d295a3 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++) {