summaryrefslogtreecommitdiff
path: root/src/sna
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-12-19 00:37:03 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-12-19 00:37:43 +0000
commit1fa5721f064a8d1f34e4032b52f24597f4015313 (patch)
tree47eae88ca85ec7b0fca0a52fce1801627e006264 /src/sna
parent7326d3098662688b8040c6e1261064caed1f5d06 (diff)
sna: Reset the GTT mapping flag when freeing the shadow pointers
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r--src/sna/sna_accel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 69bbc549..e00f6202 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -242,6 +242,7 @@ static void sna_pixmap_free_cpu(struct sna *sna, struct sna_pixmap *priv)
priv->pixmap->devPrivate.ptr = priv->ptr = NULL;
list_del(&priv->list);
+ priv->mapped = 0;
}
static Bool sna_destroy_private(PixmapPtr pixmap, struct sna_pixmap *priv)