Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1003)

Unified Diff: libvpx_srcs_x86_64_intrinsics.gypi

Issue 236183003: Enable AVX2 optimizations for libvpx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libvpx.gyp ('k') | libvpx_srcs_x86_intrinsics.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libvpx_srcs_x86_64_intrinsics.gypi
===================================================================
--- libvpx_srcs_x86_64_intrinsics.gypi (revision 263116)
+++ libvpx_srcs_x86_64_intrinsics.gypi (working copy)
@@ -85,5 +85,34 @@
}],
],
},
+ {
+ 'target_name': 'libvpx_intrinsics_avx2',
+ 'type': 'static_library',
+ 'include_dirs': [
+ 'source/config/<(OS_CATEGORY)/<(target_arch_full)',
+ '<(libvpx_source)',
+ ],
+ 'sources': [
+ '<(libvpx_source)/vp9/common/x86/vp9_loopfilter_intrin_avx2.c',
+ '<(libvpx_source)/vp9/common/x86/vp9_subpixel_8t_intrin_avx2.c',
+ '<(libvpx_source)/vp9/encoder/x86/vp9_dct32x32_avx2.c',
+ '<(libvpx_source)/vp9/encoder/x86/vp9_dct_avx2.c',
+ '<(libvpx_source)/vp9/encoder/x86/vp9_sad4d_intrin_avx2.c',
+ '<(libvpx_source)/vp9/encoder/x86/vp9_subpel_variance_impl_intrin_avx2.c',
+ '<(libvpx_source)/vp9/encoder/x86/vp9_variance_avx2.c',
+ '<(libvpx_source)/vp9/encoder/x86/vp9_variance_impl_intrin_avx2.c',
+ ],
+ 'conditions': [
+ ['os_posix==1 and OS!="mac" and OS!="ios"', {
+ 'cflags!': [ '-mfpu=vfpv3-d16' ],
+ 'cflags': [ '-mavx2', ],
+ }],
+ ['OS=="mac" or OS=="ios"', {
+ 'xcode_settings': {
+ 'OTHER_CFLAGS': [ '-mavx2', ],
+ },
+ }],
+ ],
+ },
],
}
« no previous file with comments | « libvpx.gyp ('k') | libvpx_srcs_x86_intrinsics.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698