From 5515f75647bb148d9e720dcc4713a93b59ffbd49 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 19 Oct 2011 13:49:55 +0100 Subject: [PATCH] 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 --- src/sna/sna_render_inline.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_render_inline.h b/src/sna/sna_render_inline.h index a2bee0c1..fe6d5b84 100644 --- a/src/sna/sna_render_inline.h +++ b/src/sna/sna_render_inline.h @@ -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); }