[x265] [PATCH] asm: filter_vpp, filter_vps for 32x64, 32x48 in avx2
Divya Manivannan
divya at multicorewareinc.com
Wed Apr 29 13:20:30 CEST 2015
# HG changeset patch
# User Divya Manivannan <divya at multicorewareinc.com>
# Date 1430302116 -19800
# Wed Apr 29 15:38:36 2015 +0530
# Node ID 1e8bca49a3205a8d4496761ad14b12cf3e681e22
# Parent 9b2dd8a535bc5216ea12e3d1abde32019775b8fb
asm: filter_vpp, filter_vps for 32x64, 32x48 in avx2
filter_vpp[32x64, 32x48]: 7487c->4072c, 5689c->3038c
filter_vps[32x64, 32x48]: 8026c->5078c, 6166c->3874c
diff -r 9b2dd8a535bc -r 1e8bca49a320 source/common/x86/asm-primitives.cpp
--- a/source/common/x86/asm-primitives.cpp Wed Apr 29 15:03:59 2015 +0530
+++ b/source/common/x86/asm-primitives.cpp Wed Apr 29 15:38:36 2015 +0530
@@ -2534,6 +2534,8 @@
p.chroma[X265_CSP_I422].pu[CHROMA_422_32x16].filter_vps = x265_interp_4tap_vert_ps_32x16_avx2;
p.chroma[X265_CSP_I422].pu[CHROMA_422_16x64].filter_vps = x265_interp_4tap_vert_ps_16x64_avx2;
p.chroma[X265_CSP_I422].pu[CHROMA_422_8x64].filter_vps = x265_interp_4tap_vert_ps_8x64_avx2;
+ p.chroma[X265_CSP_I422].pu[CHROMA_422_32x64].filter_vps = x265_interp_4tap_vert_ps_32x64_avx2;
+ p.chroma[X265_CSP_I422].pu[CHROMA_422_32x48].filter_vps = x265_interp_4tap_vert_ps_32x48_avx2;
//i444 for chroma_vps
p.chroma[X265_CSP_I444].pu[LUMA_4x4].filter_vps = x265_interp_4tap_vert_ps_4x4_avx2;
@@ -2555,6 +2557,7 @@
p.chroma[X265_CSP_I444].pu[LUMA_32x8].filter_vps = x265_interp_4tap_vert_ps_32x8_avx2;
p.chroma[X265_CSP_I444].pu[LUMA_8x32].filter_vps = x265_interp_4tap_vert_ps_8x32_avx2;
p.chroma[X265_CSP_I444].pu[LUMA_16x64].filter_vps = x265_interp_4tap_vert_ps_16x64_avx2;
+ p.chroma[X265_CSP_I444].pu[LUMA_32x64].filter_vps = x265_interp_4tap_vert_ps_32x64_avx2;
//i422 for chroma_vpp
p.chroma[X265_CSP_I422].pu[CHROMA_422_4x8].filter_vpp = x265_interp_4tap_vert_pp_4x8_avx2;
@@ -2572,6 +2575,8 @@
p.chroma[X265_CSP_I422].pu[CHROMA_422_32x16].filter_vpp = x265_interp_4tap_vert_pp_32x16_avx2;
p.chroma[X265_CSP_I422].pu[CHROMA_422_16x64].filter_vpp = x265_interp_4tap_vert_pp_16x64_avx2;
p.chroma[X265_CSP_I422].pu[CHROMA_422_8x64].filter_vpp = x265_interp_4tap_vert_pp_8x64_avx2;
+ p.chroma[X265_CSP_I422].pu[CHROMA_422_32x64].filter_vpp = x265_interp_4tap_vert_pp_32x64_avx2;
+ p.chroma[X265_CSP_I422].pu[CHROMA_422_32x48].filter_vpp = x265_interp_4tap_vert_pp_32x48_avx2;
//i444 for chroma_vpp
p.chroma[X265_CSP_I444].pu[LUMA_4x4].filter_vpp = x265_interp_4tap_vert_pp_4x4_avx2;
@@ -2593,6 +2598,7 @@
p.chroma[X265_CSP_I444].pu[LUMA_32x8].filter_vpp = x265_interp_4tap_vert_pp_32x8_avx2;
p.chroma[X265_CSP_I444].pu[LUMA_8x32].filter_vpp = x265_interp_4tap_vert_pp_8x32_avx2;
p.chroma[X265_CSP_I444].pu[LUMA_16x64].filter_vpp = x265_interp_4tap_vert_pp_16x64_avx2;
+ p.chroma[X265_CSP_I444].pu[LUMA_32x64].filter_vpp = x265_interp_4tap_vert_pp_32x64_avx2;
if (cpuMask & X265_CPU_BMI2)
p.scanPosLast = x265_scanPosLast_avx2_bmi2;
diff -r 9b2dd8a535bc -r 1e8bca49a320 source/common/x86/ipfilter8.asm
--- a/source/common/x86/ipfilter8.asm Wed Apr 29 15:03:59 2015 +0530
+++ b/source/common/x86/ipfilter8.asm Wed Apr 29 15:38:36 2015 +0530
@@ -8096,8 +8096,8 @@
FILTER_V4_W32 32, 64
%macro FILTER_VER_CHROMA_AVX2_32xN 2
-INIT_YMM avx2
-%if ARCH_X86_64 == 1
+%if ARCH_X86_64 == 1
+INIT_YMM avx2
cglobal interp_4tap_vert_%1_32x%2, 4, 7, 13
mov r4d, r4m
shl r4d, 6
@@ -8227,10 +8227,14 @@
%endif
%endmacro
+ FILTER_VER_CHROMA_AVX2_32xN pp, 64
+ FILTER_VER_CHROMA_AVX2_32xN pp, 48
FILTER_VER_CHROMA_AVX2_32xN pp, 32
FILTER_VER_CHROMA_AVX2_32xN pp, 24
FILTER_VER_CHROMA_AVX2_32xN pp, 16
FILTER_VER_CHROMA_AVX2_32xN pp, 8
+ FILTER_VER_CHROMA_AVX2_32xN ps, 64
+ FILTER_VER_CHROMA_AVX2_32xN ps, 48
FILTER_VER_CHROMA_AVX2_32xN ps, 32
FILTER_VER_CHROMA_AVX2_32xN ps, 24
FILTER_VER_CHROMA_AVX2_32xN ps, 16
More information about the x265-devel
mailing list