summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-21 14:26:52 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-21 14:28:47 +0100
commitc5e6b5874f334b9124a17f017c6eb175cf88f115 (patch)
tree80a9d6ea3a71e3c3428cdd0bafd731775f68c506
parentf36b656ab2bc16ec8849cadb0afb574bb742c3a3 (diff)
sna: Fix the reversed not SHM assertion
Should be double checking that we are not about to free a CPU bo pinned to a SHM pixmap. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 74db52e4..16f0c4e7 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1208,7 +1208,7 @@ _sna_pixmap_move_to_cpu(PixmapPtr pixmap, unsigned int flags)
priv->cpu = false;
list_del(&priv->list);
if (priv->cpu_bo) {
- assert(priv->shm);
+ assert(!priv->shm);
assert(!priv->cpu_bo->flush);
sna_pixmap_free_cpu(sna, priv);
}