From 47d39c002d3b5bce827ab1f782583ae8625a5975 Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=B8ren=20Sandmann?= Date: Sat, 1 Dec 2007 20:55:56 -0500 Subject: [PATCH] Conditionalize MMX code with USE_MMX --- pixman/pixman-pict.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pixman/pixman-pict.c b/pixman/pixman-pict.c index f6b64e1..be8f096 100644 --- a/pixman/pixman-pict.c +++ b/pixman/pixman-pict.c @@ -1406,6 +1406,7 @@ typedef struct uint32_t flags; } FastPathInfo; +#ifdef USE_MMX const FastPathInfo mmx_fast_paths[] = { { PIXMAN_OP_OVER, PIXMAN_solid, PIXMAN_a8, PIXMAN_r5g6b5, fbCompositeSolidMask_nx8x0565mmx, 0 }, @@ -1490,6 +1491,7 @@ const FastPathInfo mmx_fast_paths[] = { PIXMAN_OP_IN, PIXMAN_solid, PIXMAN_a8, PIXMAN_a8, fbCompositeIn_nx8x8mmx, 0 }, { PIXMAN_OP_NONE }, }; +#endif const FastPathInfo c_fast_paths[] = { @@ -1714,8 +1716,10 @@ pixman_image_composite (pixman_op_t op, !pMask->common.component_alpha && !maskRepeat; +#ifdef USE_MMX info = get_fast_path (mmx_fast_paths, op, pSrc, pMask, pDst, pixbuf); if (!info) +#endif info = get_fast_path (c_fast_paths, op, pSrc, pMask, pDst, pixbuf); if (info) -- 2.7.4