summaryrefslogtreecommitdiff
path: root/src/sna/sna_render_inline.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-10-19 13:49:55 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-10-19 13:49:55 +0100
commit5515f75647bb148d9e720dcc4713a93b59ffbd49 (patch)
tree79be80fba0cfbc9e51d00ed4399134d011bef800 /src/sna/sna_render_inline.h
parent87ba33bc0bcaf3c5160edfc61cff3ba0d28d3fd8 (diff)
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>
Diffstat (limited to 'src/sna/sna_render_inline.h')
-rw-r--r--src/sna/sna_render_inline.h2
1 files changed, 1 insertions, 1 deletions
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);
}