diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-18 15:01:52 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-09-18 15:01:52 +0100 |
commit | 8c1e60a15431b193b57d94a27b8e8de7c5a7e683 (patch) | |
tree | 8e2ad85c3a0375917a1782944339db1e314438cd | |
parent | cd23ac69ffb670468b2993242ce0d596081bbca4 (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.c | 4 |
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 && |