From ee5c74deee77db4292ce197ab7facca422f86021 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 27 Jun 2014 12:56:43 +0100 Subject: sna/glyphs: Add DBG option for forcing glyphs-to-dst Signed-off-by: Chris Wilson --- src/sna/sna_glyphs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sna/sna_glyphs.c') diff --git a/src/sna/sna_glyphs.c b/src/sna/sna_glyphs.c index 28cb58df..9b9ae102 100644 --- a/src/sna/sna_glyphs.c +++ b/src/sna/sna_glyphs.c @@ -70,6 +70,7 @@ #define FALLBACK 0 #define NO_GLYPH_CACHE 0 #define NO_GLYPHS_TO_DST 0 +#define FORCE_GLYPHS_TO_DST 0 #define NO_GLYPHS_VIA_MASK 0 #define FORCE_SMALL_MASK 0 /* -1 = never, 1 = always */ #define NO_GLYPHS_SLOW 0 @@ -1991,7 +1992,8 @@ sna_glyphs(CARD8 op, } /* Try to discard the mask for non-overlapping glyphs */ - if (mask == NULL || + if (FORCE_GLYPHS_TO_DST || + mask == NULL || (dst->pCompositeClip->data == NULL && can_discard_mask(op, src, mask, nlist, list, glyphs))) { DBG(("%s: discarding mask\n", __FUNCTION__)); -- cgit v1.2.3