summaryrefslogtreecommitdiff
path: root/src/sna/sna_trapezoids_mono.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2014-10-21 12:20:29 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2014-10-21 20:30:21 +0100
commitde96fbf66cf9a0df85cfd1dad8cf786a1d6f8325 (patch)
tree73e280fc9bd2eab901a96c38d5d91d062599ad3d /src/sna/sna_trapezoids_mono.c
parentb4872f74c05a92c91d7b57146eb35ed2ecc86d97 (diff)
sna/trapezoids: Prefer GPU for AddTraps()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna_trapezoids_mono.c')
-rw-r--r--src/sna/sna_trapezoids_mono.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sna/sna_trapezoids_mono.c b/src/sna/sna_trapezoids_mono.c
index be958754..4ad4573f 100644
--- a/src/sna/sna_trapezoids_mono.c
+++ b/src/sna/sna_trapezoids_mono.c
@@ -1286,6 +1286,10 @@ mono_trap_span_converter(struct sna *sna,
mono.clip.extents.x2 - mono.clip.extents.x1,
mono.clip.extents.y2 - mono.clip.extents.y1,
COMPOSITE_PARTIAL, memset(&mono.op, 0, sizeof(mono.op)))) {
+ if (mono.clip.data == NULL && mono.op.damage == NULL)
+ mono.span = mono_span__fast;
+ else
+ mono.span = mono_span;
mono_render(&mono);
mono.op.done(mono.sna, &mono.op);
}