summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2012-01-23 18:00:05 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2012-01-24 01:29:31 +0000
commit78238b3a37c1c8a152bd3920e73aa6034c0f663f (patch)
tree86be0c6770b9f0e369edd21a619d06deb135e39b
parentc5c77d04d79666962fd7c2d86bc6e7aef716084b (diff)
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 <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_accel.c2
1 files changed, 1 insertions, 1 deletions
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