[x265] [PATCH] fix wrong cpu type on interp_4tap_vert_x_4x2

Min Chen chenm003 at 163.com
Wed Apr 23 07:56:14 CEST 2014


# HG changeset patch
# User Min Chen <chenm003 at 163.com>
# Date 1398232565 -28800
# Node ID aa8442a28aa40397233a2540da60ab3460a0e995
# Parent  53712f218a1a5a04d4b4dafb6bcbdec51065ab2f
fix wrong cpu type on interp_4tap_vert_x_4x2

diff -r 53712f218a1a -r aa8442a28aa4 source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp	Tue Apr 22 22:52:49 2014 -0500
+++ b/source/common/x86/asm-primitives.cpp	Wed Apr 23 13:56:05 2014 +0800
@@ -870,7 +870,6 @@
 
 #define CHROMA_VERT_FILTERS(cpu) \
     SETUP_CHROMA_VERT_FUNC_DEF(4, 4, cpu); \
-    SETUP_CHROMA_VERT_FUNC_DEF(4, 2, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(8, 8, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(8, 4, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(4, 8, cpu); \
@@ -894,6 +893,7 @@
 #define CHROMA_VERT_FILTERS_SSE4(cpu) \
     SETUP_CHROMA_VERT_FUNC_DEF(2, 4, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(2, 8, cpu); \
+    SETUP_CHROMA_VERT_FUNC_DEF(4, 2, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(6, 8, cpu);
 
 #define SETUP_CHROMA_HORIZ_FUNC_DEF(W, H, cpu) \
diff -r 53712f218a1a -r aa8442a28aa4 source/common/x86/ipfilter16.asm
--- a/source/common/x86/ipfilter16.asm	Tue Apr 22 22:52:49 2014 -0500
+++ b/source/common/x86/ipfilter16.asm	Wed Apr 23 13:56:05 2014 +0800
@@ -1776,7 +1776,7 @@
 ; void interp_4tap_vert_%1_4x2(int16_t *src, intptr_t srcStride, int16_t *dst, intptr_t dstStride, int coeffIdx)
 ;---------------------------------------------------------------------------------------------------------------
 %macro FILTER_VER_CHROMA_W4 2
-INIT_XMM sse2
+INIT_XMM sse4
 cglobal interp_4tap_vert_%1_4x2, 5, 6, %2
 
     add        r1d, r1d
diff -r 53712f218a1a -r aa8442a28aa4 source/common/x86/ipfilter8.h
--- a/source/common/x86/ipfilter8.h	Tue Apr 22 22:52:49 2014 -0500
+++ b/source/common/x86/ipfilter8.h	Wed Apr 23 13:56:05 2014 +0800
@@ -127,7 +127,6 @@
 
 #define CHROMA_VERT_FILTERS(cpu) \
     SETUP_CHROMA_VERT_FUNC_DEF(4, 4, cpu); \
-    SETUP_CHROMA_VERT_FUNC_DEF(4, 2, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(8, 8, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(8, 4, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(4, 8, cpu); \
@@ -151,6 +150,7 @@
 #define CHROMA_VERT_FILTERS_SSE4(cpu) \
     SETUP_CHROMA_VERT_FUNC_DEF(2, 4, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(2, 8, cpu); \
+    SETUP_CHROMA_VERT_FUNC_DEF(4, 2, cpu); \
     SETUP_CHROMA_VERT_FUNC_DEF(6, 8, cpu);
 
 #define SETUP_CHROMA_HORIZ_FUNC_DEF(W, H, cpu) \



More information about the x265-devel mailing list