From: Søren Sandmann Pedersen Date: Wed, 13 May 2009 15:27:01 +0000 (-0400) Subject: Make the fast_path implementation run the c_fast_paths X-Git-Tag: 1.0_branch~1109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5dc9671b2588bfe084d69789e5c367474c5efa92;p=profile%2Fivi%2Fpixman.git Make the fast_path implementation run the c_fast_paths --- diff --git a/pixman/pixman-fast-path.c b/pixman/pixman-fast-path.c index c24258e..5f78bc3 100644 --- a/pixman/pixman-fast-path.c +++ b/pixman/pixman-fast-path.c @@ -1021,7 +1021,7 @@ fbCompositeSrc_8888xx888 (pixman_implementation_t *imp, } } -static const FastPathInfo c_fast_path_array[] = +static const FastPathInfo c_fast_paths[] = { { PIXMAN_OP_OVER, PIXMAN_solid, PIXMAN_a8, PIXMAN_r5g6b5, fbCompositeSolidMask_nx8x0565, 0 }, { PIXMAN_OP_OVER, PIXMAN_solid, PIXMAN_a8, PIXMAN_b5g6r5, fbCompositeSolidMask_nx8x0565, 0 }, @@ -1070,8 +1070,6 @@ static const FastPathInfo c_fast_path_array[] = { PIXMAN_OP_NONE }, }; -const FastPathInfo *const c_fast_paths = c_fast_path_array; - static void fbCompositeSrcScaleNearest (pixman_implementation_t *imp, pixman_op_t op, @@ -1215,6 +1213,16 @@ fast_path_composite (pixman_implementation_t *imp, } } + if (_pixman_run_fast_path (c_fast_paths, imp, + op, src, mask, dest, + src_x, src_y, + mask_x, mask_y, + dest_x, dest_y, + width, height)) + { + return; + } + _pixman_implementation_composite (imp->delegate, op, src, mask, dest, src_x, src_y, diff --git a/pixman/pixman-general.c b/pixman/pixman-general.c index 4693823..7d0f1fb 100644 --- a/pixman/pixman-general.c +++ b/pixman/pixman-general.c @@ -404,14 +404,6 @@ general_composite (pixman_implementation_t * imp, return; #endif - if (pixman_have_arm_simd() && _pixman_run_fast_path (c_fast_paths, imp, - op, src, mask, dest, - src_x, src_y, - mask_x, mask_y, - dest_x, dest_y, - width, height)) - return; - /* CompositeGeneral optimizes 1x1 repeating images itself */ if (src->type == BITS && src->bits.width == 1 && src->bits.height == 1) diff --git a/pixman/pixman-private.h b/pixman/pixman-private.h index adee672..2367261 100644 --- a/pixman/pixman-private.h +++ b/pixman/pixman-private.h @@ -956,8 +956,6 @@ typedef struct uint32_t flags; } FastPathInfo; -extern const FastPathInfo *const c_fast_paths; - struct pixman_implementation_t { pixman_implementation_t * toplevel;