From f88d76cf7e05cf885d80c0b91f37f1b30675e928 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 11 Feb 2010 16:51:13 -0800 Subject: [PATCH] glamor: Enable glamor_fill_spans(). x11perf -wline100 performance goes from 8.8/sec to 111/sec. --- glamor/glamor_fillspans.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/glamor/glamor_fillspans.c b/glamor/glamor_fillspans.c index 9b070eced..a633b3066 100644 --- a/glamor/glamor_fillspans.c +++ b/glamor/glamor_fillspans.c @@ -45,7 +45,8 @@ glamor_fill_spans(DrawablePtr drawable, int fullX1, fullX2, fullY1; int partX1, partX2; - goto fail; + if (gc->fillStyle != FillSolid && gc->fillStyle != FillTiled) + goto fail; extents = REGION_EXTENTS(gc->pScreen, clip); extentX1 = extents->x1; @@ -101,7 +102,7 @@ glamor_fill_spans(DrawablePtr drawable, } return; fail: - glamor_fallback("to %p (%c)\n", drawable, + glamor_fallback("glamor_fillspans(): to %p (%c)\n", drawable, glamor_get_drawable_location(drawable)); if (glamor_prepare_access(drawable, GLAMOR_ACCESS_RW)) { if (glamor_prepare_access_gc(gc)) {