_generic_read_RGBA_span_BGRA8888_REV_SSE2: It should adjust the source
authorXiang, Haihao <haihao.xiang@intel.com>
Wed, 14 May 2008 01:52:46 +0000 (09:52 +0800)
committerXiang, Haihao <haihao.xiang@intel.com>
Wed, 14 May 2008 01:55:08 +0000 (09:55 +0800)
and target pointers after do the first 2 pixels. fix bug #15850

src/mesa/x86/read_rgba_span_x86.S

index 2e5c3be83fef3974e78b78339ec4b31e5db62a0a..80144b889c72e5b41c12c6934cfeed2eab5a7295 100644 (file)
@@ -434,7 +434,8 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE2:
        je      .L47
 
        movq    (%ebx), %xmm0
-
+       addl    $8, %ebx
+        
        movdqa  %xmm0, %xmm3
        movdqa  %xmm0, %xmm4
        andps   %xmm1, %xmm0
@@ -448,6 +449,7 @@ _generic_read_RGBA_span_BGRA8888_REV_SSE2:
        orps    %xmm3, %xmm0
 
        movq    %xmm0, (%ecx)
+       addl    $8, %ecx        
 .L47:
 
        testl   $1, %edx