diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-16 09:18:29 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-03-16 09:29:39 +0000 |
commit | d55bbdf42c75eb0fdb634e963ce81953583964b9 (patch) | |
tree | 911166c7886cfda335cfdaa76a427ed5cd61396c | |
parent | fe4ad66aadcfa0c907ba6460a88c49e65225602c (diff) |
sna/traps: Remove the old paths for mono inplace traps
Dead code elimination.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna_trapezoids.c | 112 |
1 files changed, 13 insertions, 99 deletions
diff --git a/src/sna/sna_trapezoids.c b/src/sna/sna_trapezoids.c index 907ece08..dca9d1f4 100644 --- a/src/sna/sna_trapezoids.c +++ b/src/sna/sna_trapezoids.c @@ -3603,28 +3603,6 @@ tor_blt_src_clipped(struct sna *sna, } static void -tor_blt_src_mono(struct sna *sna, - struct sna_composite_spans_op *op, - pixman_region16_t *clip, - const BoxRec *box, - int coverage) -{ - tor_blt_src(sna, op, clip, box, - coverage < FAST_SAMPLES_XY/2 ? 0 : FAST_SAMPLES_XY); -} - -static void -tor_blt_src_clipped_mono(struct sna *sna, - struct sna_composite_spans_op *op, - pixman_region16_t *clip, - const BoxRec *box, - int coverage) -{ - tor_blt_src_clipped(sna, op, clip, box, - coverage < FAST_SAMPLES_XY/2 ? 0 : FAST_SAMPLES_XY); -} - -static void tor_blt_in(struct sna *sna, struct sna_composite_spans_op *op, pixman_region16_t *clip, @@ -3672,28 +3650,6 @@ tor_blt_in_clipped(struct sna *sna, } static void -tor_blt_in_mono(struct sna *sna, - struct sna_composite_spans_op *op, - pixman_region16_t *clip, - const BoxRec *box, - int coverage) -{ - tor_blt_in(sna, op, clip, box, - coverage < FAST_SAMPLES_XY/2 ? 0 : FAST_SAMPLES_XY); -} - -static void -tor_blt_in_clipped_mono(struct sna *sna, - struct sna_composite_spans_op *op, - pixman_region16_t *clip, - const BoxRec *box, - int coverage) -{ - tor_blt_in_clipped(sna, op, clip, box, - coverage < FAST_SAMPLES_XY/2 ? 0 : FAST_SAMPLES_XY); -} - -static void tor_blt_add(struct sna *sna, struct sna_composite_spans_op *op, pixman_region16_t *clip, @@ -3745,28 +3701,6 @@ tor_blt_add_clipped(struct sna *sna, pixman_region_fini(®ion); } -static void -tor_blt_add_mono(struct sna *sna, - struct sna_composite_spans_op *op, - pixman_region16_t *clip, - const BoxRec *box, - int coverage) -{ - if (coverage >= FAST_SAMPLES_XY/2) - tor_blt_add(sna, op, clip, box, FAST_SAMPLES_XY); -} - -static void -tor_blt_add_clipped_mono(struct sna *sna, - struct sna_composite_spans_op *op, - pixman_region16_t *clip, - const BoxRec *box, - int coverage) -{ - if (coverage >= FAST_SAMPLES_XY/2) - tor_blt_add_clipped(sna, op, clip, box, FAST_SAMPLES_XY); -} - struct mono_inplace_composite { pixman_image_t *src, *dst; int dx, dy; @@ -4196,41 +4130,21 @@ trapezoid_span_inplace(CARD8 op, PicturePtr src, PicturePtr dst, } if (op == PictOpSrc) { - if (dst->pCompositeClip->data) { - if (maskFormat ? maskFormat->depth < 8 : dst->polyEdge == PolyEdgeSharp) - span = tor_blt_src_clipped_mono; - else - span = tor_blt_src_clipped; - } else { - if (maskFormat ? maskFormat->depth < 8 : dst->polyEdge == PolyEdgeSharp) - span = tor_blt_src_mono; - else - span = tor_blt_src; - } + if (dst->pCompositeClip->data) + span = tor_blt_src_clipped; + else + span = tor_blt_src; } else if (op == PictOpIn) { - if (dst->pCompositeClip->data) { - if (maskFormat ? maskFormat->depth < 8 : dst->polyEdge == PolyEdgeSharp) - span = tor_blt_in_clipped_mono; - else - span = tor_blt_in_clipped; - } else { - if (maskFormat ? maskFormat->depth < 8 : dst->polyEdge == PolyEdgeSharp) - span = tor_blt_in_mono; - else - span = tor_blt_in; - } + if (dst->pCompositeClip->data) + span = tor_blt_in_clipped; + else + span = tor_blt_in; } else { - if (dst->pCompositeClip->data) { - if (maskFormat ? maskFormat->depth < 8 : dst->polyEdge == PolyEdgeSharp) - span = tor_blt_add_clipped_mono; - else - span = tor_blt_add_clipped; - } else { - if (maskFormat ? maskFormat->depth < 8 : dst->polyEdge == PolyEdgeSharp) - span = tor_blt_add_mono; - else - span = tor_blt_add; - } + assert(op == PictOpAdd); + if (dst->pCompositeClip->data) + span = tor_blt_add_clipped; + else + span = tor_blt_add; } DBG(("%s: move-to-cpu\n", __FUNCTION__)); |