i965g: nasty hack for clearing y-tiled surfaces

This commit is contained in:
Keith Whitwell 2009-12-01 17:04:46 +00:00
parent 63a8637c74
commit ba4cb8b2ca
1 changed files with 5 additions and 1 deletions

View File

@ -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;