xserver/fb fbmmx.c,1.1,1.2

Owen Taylor xserver-commit at pdx.freedesktop.org
Mon Apr 18 15:54:23 PDT 2005


Committed by: otaylor

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

Modified Files:
	fbmmx.c 
Log Message:
2005-04-18  Owen Taylor  <otaylor at redhat.com>

        * xserver/fb/fbmmx.c (fbCompositeSrc_8888x8x8888mmx):
        Actually assign the computed results. (Reported by Michael
        Dänzer)


Index: fbmmx.c
===================================================================
RCS file: /cvs/xserver/xserver/fb/fbmmx.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- fbmmx.c	17 Apr 2005 12:29:23 -0000	1.1
+++ fbmmx.c	18 Apr 2005 22:54:21 -0000	1.2
@@ -767,7 +767,7 @@
 	    __m64 vs4 = *(__m64 *)(src + 8);
 	    __m64 vs5 = *(__m64 *)(src + 10);
 	    __m64 vs6 = *(__m64 *)(src + 12);
-	    __m64 vs7 = *(__m64 *)(dst + 14);
+	    __m64 vs7 = *(__m64 *)(src + 14);
 
 	    vd0 = (__m64)pack8888 (
 		in_over (expand8888 (vs0, 0), srca, vmask, expand8888 (vd0, 0)),
@@ -801,6 +801,15 @@
 		in_over (expand8888 (vs7, 0), srca, vmask, expand8888 (vd7, 0)),
 		in_over (expand8888 (vs7, 1), srca, vmask, expand8888 (vd7, 1)));
 	
+	    *(__m64 *)(dst + 0) = vd0;
+	    *(__m64 *)(dst + 2) = vd1;
+	    *(__m64 *)(dst + 4) = vd2;
+	    *(__m64 *)(dst + 6) = vd3;
+	    *(__m64 *)(dst + 8) = vd4;
+	    *(__m64 *)(dst + 10) = vd5;
+	    *(__m64 *)(dst + 12) = vd6;
+	    *(__m64 *)(dst + 14) = vd7;
+
 	    w -= 16;
 	    dst += 16;
 	    src += 16;



More information about the xserver-commit mailing list