From 37d080929a20bd969749c6c12d1ef4ebe236063f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 27 Feb 2014 08:36:40 +0000 Subject: [PATCH] sna: Limit the WHOLE_HINT to large PutImages The goal here is to predict when we are uploading an entire image though multiple PutImage requests. If the image is small enough, then the PutImage will be contained within a single request and the damage tracking will be accurate. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 9ead602..6359de1 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -4584,7 +4584,7 @@ sna_put_zpixmap_blt(DrawablePtr drawable, GCPtr gc, RegionPtr region, return true; hint = MOVE_WRITE; - if (w == pixmap->drawable.width) + if (w == pixmap->drawable.width && h*stride > 4096) hint |= MOVE_WHOLE_HINT; if (!sna_drawable_move_region_to_cpu(&pixmap->drawable, region, hint)) -- 2.7.4