diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-28 15:48:49 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-10-28 16:15:39 +0100 |
commit | 3cd909cfe9e7d7e97a1d51513a049e312fd9ddae (patch) | |
tree | aea4fde0c443f7ed7d591d796089117e6d5800cd | |
parent | 9921c98df070032e082570f0663f6d3ad0cccd56 (diff) |
sna: Call miZeroArcLine where appropriate for GPU paths
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index 96f0e050..4b1e536b 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -4683,13 +4683,18 @@ sna_poly_arc(DrawablePtr drawable, GCPtr gc, int n, xArc *arc) if (USE_SPANS && arc_to_spans(gc, n) && can_fill_spans(drawable, gc) && sna_drawable_use_gpu_bo(drawable, ®ion.extents)) { DBG(("%s: converting arcs into spans\n", __FUNCTION__)); - miPolyArc(drawable, gc, n, arc); + /* XXX still around 10x slower for x11perf -ellipse */ + if (gc->lineWidth == 0) + miZeroPolyArc(drawable, gc, n, arc); + else + miPolyArc(drawable, gc, n, arc); return; } fallback: DBG(("%s -- fallback\n", __FUNCTION__)); if (gc->lineWidth) { + DBG(("%s -- miPolyArc\n", __FUNCTION__)); miPolyArc(drawable, gc, n, arc); return; } |