xserver/fb fbmmx.c,1.10,1.11

Billy Biggs xserver-commit at pdx.freedesktop.org
Thu Aug 18 05:59:44 PDT 2005


Committed by: vektor

Update of /cvs/xserver/xserver/fb
In directory gabe:/tmp/cvs-serv28478/fb

Modified Files:
	fbmmx.c 
Log Message:
	* fb/fbmmx.c: (fbCompositeSolidMaskSrc_nx8x8888mmx): For the source
	operator, the output should be cleared if the mask is zero.  This
	fixes the MMX code to match the fbcompose code.



Index: fbmmx.c
===================================================================
RCS file: /cvs/xserver/xserver/fb/fbmmx.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- fbmmx.c	16 Aug 2005 23:34:18 -0000	1.10
+++ fbmmx.c	18 Aug 2005 12:59:24 -0000	1.11
@@ -1513,6 +1513,10 @@
 		  __m64 vdest = in(vsrc, expand_alpha_rev ((__m64)m));
 		  *dst = store8888(vdest);
 	    }
+	    else
+	    {
+		  *dst = 0;
+	    }
 	    
 	    w--;
 	    mask++;
@@ -1543,6 +1547,10 @@
 		
 		*(__m64 *)dst = pack8888(dest0, dest1);
 	    }
+	    else
+	    {
+		*dst = 0;
+	    }
 	    
 	    mask += 2;
 	    dst += 2;
@@ -1561,6 +1569,10 @@
 		vdest = in(vsrc, expand_alpha_rev ((__m64)m));
 		*dst = store8888(vdest);
 	    }
+	    else
+	    {
+		*dst = 0;
+	    }
 	    
 	    w--;
 	    mask++;



More information about the xserver-commit mailing list