summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-09-18 15:01:52 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-09-18 15:01:52 +0100
commit8c1e60a15431b193b57d94a27b8e8de7c5a7e683 (patch)
tree8e2ad85c3a0375917a1782944339db1e314438cd
parentcd23ac69ffb670468b2993242ce0d596081bbca4 (diff)
sna: Add some asserts useful for tracking an xserver drawing bug
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index f10eda95..fbee637a 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -5281,6 +5281,10 @@ sna_fill_spans__fill(DrawablePtr drawable,
b->y2 = b->y1 + 1;
DBG(("%s: (%d, %d), (%d, %d)\n",
__FUNCTION__, b->x1, b->y1, b->x2, b->y2));
+ assert(b->x1 >= drawable->x);
+ assert(b->x2 <= drawable->x + drawable->width);
+ assert(b->y1 >= drawable->y);
+ assert(b->y2 <= drawable->y + drawable->height);
if (b->x2 > b->x1) {
if (b != box &&
b->y1 == b[-1].y2 &&