summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-06-27 04:11:47 +0200
committerEric Anholt <anholt@FreeBSD.org>2006-06-27 04:14:03 +0200
commit63c169e3b1f7d6a7375a414fcd50cce32358a525 (patch)
tree6b606509e1b42a7093923298c62eae5f18307aea
parentff6b59a0dbadbe61a53e48c23965d3073d95791b (diff)
Fix MMX Saturate implementation.
The code was expanding the source blend factor from the wrong channel. Fixes cairo's clip-operator test.
-rw-r--r--fb/fbmmx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fb/fbmmx.c b/fb/fbmmx.c
index d058ffae4..f74930a39 100644
--- a/fb/fbmmx.c
+++ b/fb/fbmmx.c
@@ -591,7 +591,7 @@ mmxCombineSaturateU (CARD32 *dest, const CARD32 *src, int width)
if (sa > da) {
__m64 msa = load8888(FbIntDiv(da, sa));
- msa = expand_alpha(msa);
+ msa = expand_alpha_rev(msa);
ms = pix_multiply(ms, msa);
}
md = pix_add(md, ms);