diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-05-01 10:18:23 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-05-01 16:14:09 +0100 |
commit | ca4a32c20d4c1f91552c02b9008ae16435b92d71 (patch) | |
tree | 413a82c0ab239cbbc83dbc242432d7538291a987 /src/sna/sna_accel.c | |
parent | ab576a42650d8a743dd91108f774c220d866de95 (diff) |
sna: Page align requests to userptr
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |