diff options
Diffstat (limited to 'src/sna/sna_accel.c')
-rw-r--r-- | src/sna/sna_accel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 3c3b21f2..5d25bf71 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -2227,7 +2227,7 @@ done: priv->cpu = (flags & (MOVE_INPLACE_HINT | MOVE_ASYNC_HINT)) == 0 && !DAMAGE_IS_ALL(priv->gpu_damage); - assert(pixmap->devPrivate.ptr); + assert(pixmap->devPrivate.ptr == PTR(priv->ptr)); assert(pixmap->devKind); assert_pixmap_damage(pixmap); assert(has_coherent_ptr(sna, sna_pixmap(pixmap), flags)); @@ -2882,7 +2882,7 @@ out: priv->cpu = (flags & (MOVE_INPLACE_HINT | MOVE_ASYNC_HINT)) == 0 && !DAMAGE_IS_ALL(priv->gpu_damage); - assert(pixmap->devPrivate.ptr); + assert(pixmap->devPrivate.ptr == PTR(priv->ptr)); assert(pixmap->devKind); assert_pixmap_damage(pixmap); assert(has_coherent_ptr(sna, sna_pixmap(pixmap), flags)); |