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:
parent
27ac9f574f
commit
37d080929a
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in New Issue