From: Søren Sandmann Pedersen Date: Thu, 6 Aug 2009 01:24:50 +0000 (-0400) Subject: Don't run fast paths if the format requires wide compositing. X-Git-Tag: 1.0_branch~798^2~28 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8bb58a3ce83d6b9c1f6796ce8e62450bdaa52cf0;p=profile%2Fivi%2Fpixman.git Don't run fast paths if the format requires wide compositing. This could happen because the wide formats would still be considered solid if the image was 1x1 and repeating. --- diff --git a/pixman/pixman-utils.c b/pixman/pixman-utils.c index 1396fb7..961c6c6 100644 --- a/pixman/pixman-utils.c +++ b/pixman/pixman-utils.c @@ -663,7 +663,8 @@ _pixman_run_fast_path (const pixman_fast_path_t *paths, if (has_fast_path && src->type == BITS) { has_fast_path = !src->bits.read_func && - !src->bits.write_func; + !src->bits.write_func && + !PIXMAN_FORMAT_IS_WIDE (src->bits.format); } } @@ -674,9 +675,10 @@ _pixman_run_fast_path (const pixman_fast_path_t *paths, !mask->common.alpha_map && !mask->bits.read_func && !mask->bits.write_func && - mask->common.filter != PIXMAN_FILTER_CONVOLUTION && - mask->common.repeat != PIXMAN_REPEAT_PAD && - mask->common.repeat != PIXMAN_REPEAT_REFLECT; + mask->common.filter != PIXMAN_FILTER_CONVOLUTION && + mask->common.repeat != PIXMAN_REPEAT_PAD && + mask->common.repeat != PIXMAN_REPEAT_REFLECT; + !PIXMAN_FORMAT_IS_WIDE (src->bits.format); } if (has_fast_path)