Fix MMX Saturate implementation.

The code was expanding the source blend factor from the wrong channel.  Fixes
cairo's clip-operator test.
This commit is contained in:
Eric Anholt 2006-06-27 04:11:47 +02:00
parent ff6b59a0db
commit 63c169e3b1

View File

@ -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);