summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-11-26 16:03:07 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-11-27 09:23:08 +0000
commitda9ad388a0657b85fcf9a5f78ae1e75d0052dc52 (patch)
treeda1c31a3de53a856e99894811fea0b38fbd6498e
parentd4aa7ca6f8e554b8de218216fd7e61e4b2df8763 (diff)
sna: Add DBG for small_copy()
Emit a DBG when we decide that the region is small and pass that hint to the backends. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c
index 33418512..71a62075 100644
--- a/src/sna/sna_accel.c
+++ b/src/sna/sna_accel.c
@@ -1087,8 +1087,12 @@ sna_pixmap_create_scratch(ScreenPtr screen,
static unsigned small_copy(const RegionRec *region)
{
- if ((region->extents.x2 - region->extents.x1)*(region->extents.y2 - region->extents.y1) < 1024)
+ if ((region->extents.x2 - region->extents.x1)*(region->extents.y2 - region->extents.y1) < 1024) {
+ DBG(("%s: region:%dx%d\n", __FUNCTION__,
+ (region->extents.x2 - region->extents.x1),
+ (region->extents.y2 - region->extents.y1)));
return COPY_SMALL;
+ }
return 0;
}