diff options
author | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2004-07-22 19:24:50 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <sandmann@daimi.au.dk> | 2004-07-22 19:24:50 +0000 |
commit | cc3e0173d9fae8a40eb46606d9951e3aa1df975a (patch) | |
tree | bd64512cf0d26994d87e366ce184a83297a9f5e6 /fb/fbfill.c | |
parent | 9565d9e0cf85e6f5fb47acebdd66212bd6cc3e08 (diff) |
Thu Jul 22 20:03:11 2004 Soeren Sandmann <sandmann@daimi.au.dk>
Call MMX solid fill routine when available.
Call MMX operations when available.
New HasGcc34 macro
New file with many operations implemented with MMX intrinsics, conditional
on having GCC 3.4 on i386.
Diffstat (limited to 'fb/fbfill.c')
-rw-r--r-- | fb/fbfill.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fb/fbfill.c b/fb/fbfill.c index d03bc6461..f5842c252 100644 --- a/fb/fbfill.c +++ b/fb/fbfill.c @@ -24,6 +24,7 @@ /* $XFree86: xc/programs/Xserver/fb/fbfill.c,v 1.5 2003/01/29 00:43:33 torrey Exp $ */ #include "fb.h" +#include "fbmmx.h" void fbFill (DrawablePtr pDrawable, @@ -43,6 +44,11 @@ fbFill (DrawablePtr pDrawable, switch (pGC->fillStyle) { case FillSolid: +#ifdef USE_GCC34_MMX + if (!pPriv->and && fbHaveMMX()) + if (fbSolidFillmmx (pDrawable, x, y, width, height, pPriv->xor)) + return; +#endif fbSolid (dst + (y + dstYoff) * dstStride, dstStride, (x + dstXoff) * dstBpp, |