From: Keith Whitwell Date: Tue, 1 Dec 2009 17:04:46 +0000 (+0000) Subject: i965g: nasty hack for clearing y-tiled surfaces X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ba4cb8b2caac69c6d2b210a5c3c634d8c1c20940;p=mesa.git i965g: nasty hack for clearing y-tiled surfaces --- diff --git a/src/gallium/drivers/i965/brw_pipe_clear.c b/src/gallium/drivers/i965/brw_pipe_clear.c index f846b4342c4..211be881789 100644 --- a/src/gallium/drivers/i965/brw_pipe_clear.c +++ b/src/gallium/drivers/i965/brw_pipe_clear.c @@ -79,7 +79,11 @@ try_clear( struct brw_context *brw, BR13 |= BR13_565; } - assert(surface->tiling != BRW_TILING_Y); + /* XXX: nasty hack for clearing depth buffers + */ + if (surface->tiling == BRW_TILING_Y) { + x2 = pitch; + } if (surface->tiling == BRW_TILING_X) { CMD |= XY_DST_TILED;