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>
This commit is contained in:
Chris Wilson 2013-03-23 10:22:41 +00:00
parent 88b6b80c2a
commit f6582387e7
1 changed files with 1 additions and 1 deletions

View File

@ -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__));