From 0b5fec3f80c8d2e4d3b504af5bb02fb76be6b3a6 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 19 Dec 2011 20:13:05 +0000 Subject: [PATCH] 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 --- src/sna/sna_accel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 4aed6a64..079a65fd 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -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);