From ca4a32c20d4c1f91552c02b9008ae16435b92d71 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 1 May 2013 10:18:23 +0100 Subject: sna: Page align requests to userptr Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sna/sna_accel.c') diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 43a6d709..051f1165 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -13726,6 +13726,7 @@ sna_accel_flush_callback(CallbackListPtr *list, __FUNCTION__, priv->pixmap->drawable.serialNumber, priv->pixmap->refcnt)); + assert(!priv->flush); ret = sna_pixmap_move_to_cpu(priv->pixmap, MOVE_READ | MOVE_WRITE); assert(!ret || priv->gpu_bo == NULL); @@ -13734,6 +13735,7 @@ sna_accel_flush_callback(CallbackListPtr *list, } else { DBG(("%s: flushing DRI pixmap=%ld\n", __FUNCTION__, priv->pixmap->drawable.serialNumber)); + assert(priv->flush); if (sna_pixmap_move_to_gpu(priv->pixmap, MOVE_READ | __MOVE_FORCE)) kgem_bo_unclean(&sna->kgem, priv->gpu_bo); -- cgit v1.2.3