diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-24 01:27:08 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-24 01:28:52 +0000 |
commit | 72fc3122b85fe1a1a16c7f7401c300089273fd88 (patch) | |
tree | ae75750f95db5238223ead077ee315da673013a5 | |
parent | 98879e3786b7f6241378a32a10f2d46eb01baf85 (diff) |
sna: Prefer to always use span generation for PolyArc
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_accel.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/sna/sna_accel.c b/src/sna/sna_accel.c index ea570047..cb3bef3d 100644 --- a/src/sna/sna_accel.c +++ b/src/sna/sna_accel.c @@ -7629,21 +7629,6 @@ sna_poly_arc_extents(DrawablePtr drawable, GCPtr gc, } static bool -arc_to_spans(GCPtr gc, int n) -{ - if (gc->lineStyle != LineSolid) - return false; - - if (gc->lineWidth == 0) - return true; - - if (n == 1) - return true; - - return false; -} - -static bool gc_is_solid(GCPtr gc, uint32_t *color) { if (gc->fillStyle == FillSolid || @@ -7697,9 +7682,7 @@ sna_poly_arc(DrawablePtr drawable, GCPtr gc, int n, xArc *arc) if (!PM_IS_SOLID(drawable, gc->planemask)) goto fallback; - /* For "simple" cases use the miPolyArc to spans path */ if (use_wide_spans(drawable, gc, &data.region.extents) && - arc_to_spans(gc, n) && sna_drawable_use_gpu_bo(drawable, &data.region.extents, &data.damage)) { uint32_t color; |