sna: Call miZeroArcLine where appropriate for GPU paths

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-10-28 15:48:49 +01:00
parent 9921c98df0
commit 3cd909cfe9
1 changed files with 6 additions and 1 deletions

View File

@ -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, &region.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;
}