sna: Enlarge the minimum pixmap size to migrate for Render
This is to workaround a ping-pong issue involving small icons. The horrible sequence of operations appears to use a tiled FillRect to copy from the scanout onto to a temporary pixmap, which causes us to readback from the scanout. We are destined to hit the fallback path there anyway until we implement stippling... References: https://bugs.freedesktop.org/show_bug.cgi?id=41718 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
87ba33bc0b
commit
5515f75647
|
|
@ -87,7 +87,7 @@ is_dirty_gpu(DrawablePtr drawable)
|
|||
static inline Bool
|
||||
too_small(DrawablePtr drawable)
|
||||
{
|
||||
return (drawable->width * drawable->height <= 256) &&
|
||||
return (drawable->width * drawable->height * drawable->bitsPerPixel <= 8*4096) &&
|
||||
!is_dirty_gpu(drawable);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue