From 7db2e666e2dc9a1dba468e35e9d382e76ed8be54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Fri, 14 Jan 2005 21:56:51 +0000 Subject: [PATCH] =?UTF-8?q?Fri=20Jan=2014=2011:12:46=202005=20S=C3=B8ren?= =?UTF-8?q?=20Sandmann=20=20Use=20mmx=20CopyArea=20in?= =?UTF-8?q?=20a=20few=20more=20places.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fb/fbpict.c | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/fb/fbpict.c b/fb/fbpict.c index a666a0d40..cb0dcd138 100644 --- a/fb/fbpict.c +++ b/fb/fbpict.c @@ -1048,7 +1048,7 @@ fbComposite (CARD8 op, } } } - else + else /* no mask */ { if (srcRepeat && pSrc->pDrawable->width == 1 && @@ -1098,6 +1098,27 @@ fbComposite (CARD8 op, break; } break; + case PICT_x8r8g8b8: + switch (pDst->format) { + case PICT_a8r8g8b8: + case PICT_x8r8g8b8: +#ifdef USE_MMX + if (fbHaveMMX()) + func = fbCompositeCopyAreammx; +#endif + break; + } + case PICT_x8b8g8r8: + switch (pDst->format) { + case PICT_a8b8g8r8: + case PICT_x8b8g8r8: +#ifdef USE_MMX + if (fbHaveMMX()) + func = fbCompositeCopyAreammx; +#endif + break; + } + break; case PICT_a8b8g8r8: switch (pDst->format) { case PICT_a8b8g8r8: