sna/glyphs: Add DBG option for forcing glyphs-to-dst
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Jun 2014 11:56:43 +0000 (12:56 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Jun 2014 12:40:58 +0000 (13:40 +0100)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_glyphs.c

index 28cb58d..9b9ae10 100644 (file)
@@ -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__));