From 63c169e3b1f7d6a7375a414fcd50cce32358a525 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 27 Jun 2006 04:11:47 +0200 Subject: [PATCH] Fix MMX Saturate implementation. The code was expanding the source blend factor from the wrong channel. Fixes cairo's clip-operator test. --- fb/fbmmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);