summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gallium/drivers/i965/brw_pipe_clear.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/drivers/i965/brw_pipe_clear.c b/src/gallium/drivers/i965/brw_pipe_clear.c
index f846b4342c..211be88178 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;