summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-03-23 10:22:41 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-03-23 10:22:41 +0000
commitf6582387e7d601272a92c3aaeb656de5ce1ffe75 (patch)
treee1a462112dfad4299b7802c08837b2d774d4461e
parent88b6b80c2a5191717f0baeb22cdb70ee8c993e09 (diff)
sna: Fix an assertion to check the correct bo
After syncing the GPU bo for use, that's what we should test as well. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index be58fff7..fd301c70 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1691,7 +1691,7 @@ skip_inplace_map:
assert(IS_CPU_MAP(priv->gpu_bo->map));
kgem_bo_sync__cpu_full(&sna->kgem, priv->gpu_bo,
FORCE_FULL_SYNC || flags & MOVE_WRITE);
- assert(pixmap->devPrivate.ptr == ((unsigned long)priv->cpu_bo->map & ~3));
+ assert(pixmap->devPrivate.ptr == ((unsigned long)priv->gpu_bo->map & ~3));
assert((flags & MOVE_WRITE) == 0 || !kgem_bo_is_busy(priv->gpu_bo));
assert_pixmap_damage(pixmap);
DBG(("%s: operate inplace (CPU)\n", __FUNCTION__));