summaryrefslogtreecommitdiff
path: root/src/sna/fb/fbbitmap.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-07-18 09:38:03 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2012-07-18 09:41:24 +0100
commit88cb1968b6dbf3edfa885da9503e91124af46007 (patch)
treef51a82c5a7a25d618eb2ff907f2b51d6d8d82855 /src/sna/fb/fbbitmap.c
parent36f2e46619598e9bca4fe1207aa2f157bfa1ecf4 (diff)
sna: Add more DBG for fallback processing
Hunting the lost box... Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/fb/fbbitmap.c')
-rw-r--r--src/sna/fb/fbbitmap.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/sna/fb/fbbitmap.c b/src/sna/fb/fbbitmap.c
index fa5d0320..07587280 100644
--- a/src/sna/fb/fbbitmap.c
+++ b/src/sna/fb/fbbitmap.c
@@ -37,6 +37,11 @@ static inline void add(RegionPtr region,
r->x1 = x1; r->y1 = y1;
r->x2 = x2; r->y2 = y2;
+ DBG(("%s[%d/%d]: (%d, %d), (%d, %d)\n",
+ __FUNCTION__,
+ region->data->numRects, region->data->size,
+ x1, y1, x2, y2));
+
if (x1 < region->extents.x1)
region->extents.x1 = x1;
if (x2 > region->extents.x2)
@@ -138,5 +143,11 @@ fbBitmapToRegion(PixmapPtr pixmap)
} else
region->extents.x1 = region->extents.x2 = 0;
+ DBG(("%s: region extents=(%d, %d), (%d, %d) x %d\n",
+ __FUNCTION__,
+ region->extents.x1, region->extents.y1,
+ region->extents.x2, region->extents.y2,
+ RegionNumRects(region)));
+
return region;
}