diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-11 14:46:33 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-11 23:19:32 +0000 |
commit | 11acfaa62362660ff303f3afe90d1afa36b9ce73 (patch) | |
tree | 414ef972094ce8fcd99197f73f2449f936e9b281 /src | |
parent | c6e6ae1829e06ee8fe8eb063f2433cce603c9f96 (diff) |
sna/glyph: Tweak the small mask threshold
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src')
-rw-r--r-- | src/sna/sna_glyphs.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c index 08951774..8d3074af 100644 --- a/src/sna/sna_glyphs.c +++ b/src/sna/sna_glyphs.c @@ -711,12 +711,13 @@ glyphs_via_mask(struct sna *sna, } component_alpha = NeedsComponent(format->format); - if ((uint32_t)width * height * format->depth < 8 * 256) { + if ((uint32_t)width * height * format->depth < 8 * 4096) { pixman_image_t *mask_image; int s; - DBG(("%s: small mask [format=%lx, depth=%d], rendering glyphs to upload buffer\n", - __FUNCTION__, (unsigned long)format->format, format->depth)); + DBG(("%s: small mask [format=%lx, depth=%d, size=%d], rendering glyphs to upload buffer\n", + __FUNCTION__, (unsigned long)format->format, format->depth + (uint32_t)width*height*format->depth)); upload: pixmap = sna_pixmap_create_upload(screen, |