[x265] [PATCH] asm: fix for mismatch in 10bpp block copy

murugan at multicorewareinc.com murugan at multicorewareinc.com
Thu Dec 26 12:15:05 CET 2013


# HG changeset patch
# User Murugan Vairavel <murugan at multicorewareinc.com>
# Date 1388056032 -19800
#      Thu Dec 26 16:37:12 2013 +0530
# Node ID 69546f09c93cc80cc6e9a26d29dbe301188dac6c
# Parent  0a5a16a73019716e4999794292565cef5016de84
asm: fix for mismatch in 10bpp block copy

diff -r 0a5a16a73019 -r 69546f09c93c source/common/x86/blockcopy8.asm
--- a/source/common/x86/blockcopy8.asm	Tue Dec 24 01:16:15 2013 +0800
+++ b/source/common/x86/blockcopy8.asm	Thu Dec 26 16:37:12 2013 +0530
@@ -280,7 +280,7 @@
     add       r1,    r1
     add       r3,    r3
     movu      m0,    [r2]
-    movu      m1,    [r2 + r1]
+    movu      m1,    [r2 + r3]
 
     pshufd    m2,      m0,      2
     pshufd    m3,      m1,      2
@@ -292,7 +292,7 @@
     lea       r0,    [r0 + 2 * r1]
     lea       r2,    [r2 + 2 * r3]
     movu      m0,    [r2]
-    movu      m1,    [r2 + r1]
+    movu      m1,    [r2 + r3]
 
     pshufd    m2,      m0,      2
     pshufd    m3,      m1,      2
@@ -304,7 +304,7 @@
     lea       r0,    [r0 + 2 * r1]
     lea       r2,    [r2 + 2 * r3]
     movu      m0,    [r2]
-    movu      m1,    [r2 + r1]
+    movu      m1,    [r2 + r3]
 
     pshufd    m2,      m0,      2
     pshufd    m3,      m1,      2
@@ -316,7 +316,7 @@
     lea       r0,    [r0 + 2 * r1]
     lea       r2,    [r2 + 2 * r3]
     movu      m0,    [r2]
-    movu      m1,    [r2 + r1]
+    movu      m1,    [r2 + r3]
 
     pshufd    m2,      m0,      2
     pshufd    m3,      m1,      2
@@ -397,7 +397,7 @@
     add     r1,    r1
     add     r3,    r3
     movu    m0,    [r2]
-    movu    m1,    [r2 + r1]
+    movu    m1,    [r2 + r3]
 
     movu    [r0],       m0
     movu    [r0 + r1],  m1
@@ -420,7 +420,7 @@
     add     r3,    r3
     movu    m0,    [r2]
     movu    m1,    [r2 + r3]
-    lea     r2,    [r2 + 2 * r3]
+    lea     r2,    [r2 + r3 * 2]
     movu    m2,    [r2]
     movu    m3,    [r2 + r3]
 


More information about the x265-devel mailing list