sna: Drop the is-mapped flag after operating via the GPU

Mark the end of a sequence of CPU operations and force the decision to
map again to be based on the current upload operation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-12-19 20:13:05 +00:00
parent 351c8f1633
commit 0b5fec3f80
1 changed files with 4 additions and 0 deletions

View File

@ -1341,6 +1341,10 @@ done:
sna_damage_reduce_all(&priv->gpu_damage,
pixmap->drawable.width,
pixmap->drawable.height);
if (priv->mapped) {
pixmap->devPrivate.ptr = NULL;
priv->mapped = 0;
}
list_del(&priv->list);
if (!priv->pinned)
list_move(&priv->inactive, &sna->active_pixmaps);