sna: Tighten assertion for tiling blt fallbacks
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Feb 2014 21:21:46 +0000 (21:21 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Feb 2014 21:22:23 +0000 (21:22 +0000)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_tiling.c

index 8bb4fbc..e21ede1 100644 (file)
@@ -1084,8 +1084,7 @@ bool sna_tiling_blt_copy_boxes(struct sna *sna, uint8_t alu,
                                int16_t dx = this.extents.x1;
                                int16_t dy = this.extents.y1;
 
-                               assert(bo->pitch <= 8192);
-                               assert(bo->tiling != I915_TILING_Y);
+                               assert(kgem_bo_can_blt(&sna->kgem, bo));
 
                                if (!sna_blt_copy_boxes(sna, GXcopy,
                                                        src_bo, src_dx, src_dy,