summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm10
-rw-r--r--xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm10
2 files changed, 10 insertions, 10 deletions
diff --git a/xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm b/xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm
index be6939d3..e2186433 100644
--- a/xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm
+++ b/xorg/server/module/x86/i420_to_rgb32_x86_sse2.asm
@@ -53,7 +53,7 @@ do8_uv:
; v
movd xmm1, [ebx] ; 4 at a time
- add ebx, 4
+ lea ebx, [ebx + 4]
punpcklbw xmm1, xmm1
pxor xmm6, xmm6
punpcklbw xmm1, xmm6
@@ -63,7 +63,7 @@ do8_uv:
; u
movd xmm2, [edx] ; 4 at a time
- add edx, 4
+ lea edx, [edx + 4]
punpcklbw xmm2, xmm2
punpcklbw xmm2, xmm6
psubw xmm2, xmm7
@@ -73,7 +73,7 @@ do8:
; y
movq xmm0, [esi] ; 8 at a time
- add esi, 8
+ lea esi, [esi + 8]
pxor xmm6, xmm6
punpcklbw xmm0, xmm6
@@ -109,10 +109,10 @@ do8:
movdqa xmm4, xmm3
punpcklwd xmm3, xmm5 ; argb
movdqa [edi], xmm3
- add edi, 16
+ lea edi, [edi + 16]
punpckhwd xmm4, xmm5 ; argb
movdqa [edi], xmm4
- add edi, 16
+ lea edi, [edi + 16]
ret;
diff --git a/xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm b/xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm
index 1145f9fd..9087b291 100644
--- a/xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm
+++ b/xorg/server/module/x86/yv12_to_rgb32_x86_sse2.asm
@@ -53,7 +53,7 @@ do8_uv:
; u
movd xmm1, [ebx] ; 4 at a time
- add ebx, 4
+ lea ebx, [ebx + 4]
punpcklbw xmm1, xmm1
pxor xmm6, xmm6
punpcklbw xmm1, xmm6
@@ -63,7 +63,7 @@ do8_uv:
; v
movd xmm2, [edx] ; 4 at a time
- add edx, 4
+ lea edx, [edx + 4]
punpcklbw xmm2, xmm2
punpcklbw xmm2, xmm6
psubw xmm2, xmm7
@@ -73,7 +73,7 @@ do8:
; y
movq xmm0, [esi] ; 8 at a time
- add esi, 8
+ lea esi, [esi + 8]
pxor xmm6, xmm6
punpcklbw xmm0, xmm6
@@ -109,10 +109,10 @@ do8:
movdqa xmm4, xmm3
punpcklwd xmm3, xmm5 ; argb
movdqa [edi], xmm3
- add edi, 16
+ lea edi, [edi + 16]
punpckhwd xmm4, xmm5 ; argb
movdqa [edi], xmm4
- add edi, 16
+ lea edi, [edi + 16]
ret;