summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-03-31 14:03:49 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-03-31 14:03:49 +0100
commit644c274b2cd398c8236d36423677317cbc82308a (patch)
tree3a563dd50f3c8cc5f39e004e722cae7a6580df6e /src
parent4b97bf7e6e9e315cc77d940e3be97832a326e702 (diff)
sna: Fix predicate inversion for assertion
The assertion was checking that the invalid condition was true, rather than that it never happened. Oops. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r--src/sna/sna_accel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 133b0467..0116d548 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -262,8 +262,8 @@ pixmap_contains_damage(PixmapPtr pixmap, struct sna_damage *damage)
assert(priv__->gpu_damage == NULL || priv__->gpu_bo); \
assert(priv__->gpu_bo == NULL || priv__->gpu_bo->refcnt); \
assert(priv__->cpu_bo == NULL || priv__->cpu_bo->refcnt); \
- assert(!pixmap_contains_damage(p, priv__->gpu_damage)); \
- assert(!pixmap_contains_damage(p, priv__->cpu_damage)); \
+ assert(pixmap_contains_damage(p, priv__->gpu_damage)); \
+ assert(pixmap_contains_damage(p, priv__->cpu_damage)); \
assert_pixmap_map(p, priv__); \
} \
} while (0)