From 1db1eced5462723811e535a53cb41b108fc6c5a3 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 20 Mar 2012 22:57:50 +0000 Subject: sna: Tidy an assertion when handling tiled copies Signed-off-by: Chris Wilson --- src/sna/kgem.c | 2 ++ src/sna/sna_tiling.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/sna/kgem.c b/src/sna/kgem.c index bb09214e..c0229005 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -1095,6 +1095,8 @@ static void __kgem_bo_destroy(struct kgem *kgem, struct kgem_bo *bo) goto destroy; if (bo->vmap) { + DBG(("%s: handle=%d is vmapped, tracking until free\n", + __FUNCTION__, bo->handle)); if (bo->rq == NULL) { if (bo->needs_flush && kgem_busy(kgem, bo->handle)) { list_add(&bo->request, &kgem->flushing); diff --git a/src/sna/sna_tiling.c b/src/sna/sna_tiling.c index 493e3132..dcb4d1dc 100644 --- a/src/sna/sna_tiling.c +++ b/src/sna/sna_tiling.c @@ -389,8 +389,8 @@ sna_tiling_fill_boxes(struct sna *sna, int16_t dx = this.extents.x1; int16_t dy = this.extents.y1; + assert(kgem_bo_can_blt(&sna->kgem, bo)); assert(bo->pitch <= 8192); - assert(bo->tiling != I915_TILING_Y); if (!sna->render.copy_boxes(sna, GXcopy, dst, dst_bo, 0, 0, -- cgit v1.2.3