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 <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-02-27 08:36:40 +00:00
parent 27ac9f574f
commit 37d080929a
1 changed files with 1 additions and 1 deletions

View File

@ -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))