From 78238b3a37c1c8a152bd3920e73aa6034c0f663f Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 23 Jan 2012 18:00:05 +0000 Subject: [PATCH] sna: Prefer mi span filling functions to call through to the GPU Having removed the double analysis for the fast paths, at least, the span filling code on the GPU is now faster than doing the same operations in cache memory for the majority of cases. So allow the driver to prefer to use those functions when it has a GPU bo. Signed-off-by: Chris Wilson --- src/sna/sna_accel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 6fd5fc46..f8bee58f 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -59,7 +59,7 @@ #define FORCE_FLUSH 0 #define USE_INPLACE 1 -#define USE_WIDE_SPANS 0 /* -1 force CPU, 1 force GPU */ +#define USE_WIDE_SPANS 1 /* -1 force CPU, 1 force GPU */ #define USE_ZERO_SPANS 1 /* -1 force CPU, 1 force GPU */ #define USE_BO_FOR_SCRATCH_PIXMAP 1