summaryrefslogtreecommitdiff
path: root/src/sna/sna_damage.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-14 09:41:53 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-14 09:50:24 +0000
commite33dfbe3c00e634328adc7319261e5501f4c7a7a (patch)
tree59828ca5dba8903d9cd6858a3d73e298ef2aaae0 /src/sna/sna_damage.c
parentf033172d2f383c7e17362a10f56c4958fb9a3a6b (diff)
sna/damage: Verify that all-damage covers the entire pixmap after reduction
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_damage.c')
-rw-r--r--src/sna/sna_damage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sna/sna_damage.c b/src/sna/sna_damage.c
index 5a4d67c3..03bb881c 100644
--- a/src/sna/sna_damage.c
+++ b/src/sna/sna_damage.c
@@ -947,6 +947,11 @@ struct sna_damage *_sna_damage_is_all(struct sna_damage *damage,
if (damage->region.data)
return damage;
+ assert(damage->extents.x1 == 0 &&
+ damage->extents.y1 == 0 &&
+ damage->extents.x2 == width &&
+ damage->extents.y2 == height);
+
return _sna_damage_all(damage, width, height);
}