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:
parent
ff6b59a0db
commit
63c169e3b1
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue