aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i965
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-12-01 17:04:46 +0000
committerKeith Whitwell <[email protected]>2009-12-01 17:04:46 +0000
commitba4cb8b2caac69c6d2b210a5c3c634d8c1c20940 (patch)
tree0ffffc423139131303208916d21c60055ff1e052 /src/gallium/drivers/i965
parent63a8637c7425f64f5e48c2df2b60cc56ae6237ab (diff)
i965g: nasty hack for clearing y-tiled surfaces
Diffstat (limited to 'src/gallium/drivers/i965')
-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 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;