diff options
author | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2005-01-14 21:56:51 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2005-01-14 21:56:51 +0000 |
commit | 7db2e666e2dc9a1dba468e35e9d382e76ed8be54 (patch) | |
tree | fa882c59fef962c9512be9f39658519968f78315 | |
parent | 761f937fdee9ccd10ad54c1f06e12f2f102547a6 (diff) |
Fri Jan 14 11:12:46 2005 Søren Sandmann <sandmann@redhat.com>
Use mmx CopyArea in a few more places.
-rw-r--r-- | fb/fbpict.c | 23 |
1 files changed, 22 insertions, 1 deletions
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: |