i965g: nasty hack for clearing y-tiled surfaces
authorKeith Whitwell <keithw@vmware.com>
Tue, 1 Dec 2009 17:04:46 +0000 (17:04 +0000)
committerKeith Whitwell <keithw@vmware.com>
Tue, 1 Dec 2009 17:04:46 +0000 (17:04 +0000)
src/gallium/drivers/i965/brw_pipe_clear.c

index f846b4342c48dc40fbadf94820a6201fd54d4463..211be881789f1a592463ab404f662ba5048b3180 100644 (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;