From ff54d4af39edcddd55f597c404ab6dd548a24aa9 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 10 Aug 2012 21:41:38 +0100 Subject: [PATCH] sna: Add a couple of debug options to control use of BLT patterns References: https://bugs.freedesktop.org/show_bug.cgi?id=53353 Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 496f57b4..9e7e61c0 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -88,6 +88,9 @@ #define ACCEL_IMAGE_GLYPH 1 #define ACCEL_PUSH_PIXELS 1 +#define NO_TILE_8x8 0 +#define NO_STIPPLE_8x8 0 + #if 0 static void __sna_fallback_flush(DrawablePtr d) { @@ -9411,6 +9414,9 @@ sna_poly_fill_rect_tiled_8x8_blt(DrawablePtr drawable, int16_t dx, dy; uint32_t *b; + if (NO_TILE_8x8) + return false; + DBG(("%s x %d [(%d, %d)+(%d, %d)...], clipped=%x\n", __FUNCTION__, n, r->x, r->y, r->width, r->height, clipped)); @@ -9991,6 +9997,9 @@ sna_poly_fill_rect_stippled_8x8_blt(DrawablePtr drawable, int16_t dx, dy; uint32_t *b; + if (NO_STIPPLE_8x8) + return false; + DBG(("%s: alu=%d, upload (%d, %d), (%d, %d), origin (%d, %d)\n", __FUNCTION__, gc->alu, extents->x1, extents->y1,