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:
parent
351c8f1633
commit
0b5fec3f80
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue