diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-25 22:58:31 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-06-26 10:02:41 +0100 |
commit | fc5b9a96194583c67705d7d05afc3e04e97e3338 (patch) | |
tree | 83155e08b9dd33a40bc59fff5b73047634a542ac | |
parent | 3f33abee370bb1ce60bca91f29affc62d06b0bad (diff) |
sna: Clear mapped state after performing manual tiling
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 0bd9bbe6..065def95 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -4010,6 +4010,12 @@ try_upload_tiled_x(PixmapPtr pixmap, RegionRec *region, if (priv->cpu_damage) sna_damage_subtract(&priv->cpu_damage, region); + if (priv->mapped) { + assert(!priv->shm); + priv->pixmap->devPrivate.ptr = NULL; + priv->mapped = false; + } + priv->clear = false; priv->cpu = false; return true; |