Bug 1540760 - Enable neon for libyuv for aarch64; r=jya

Differential Revision: https://phabricator.services.mozilla.com/D27786

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dan Minor 2019-05-01 15:04:49 +00:00
Родитель e2aee8c88f
Коммит 02980fb082
3 изменённых файлов: 1 добавлений и 18 удалений

Просмотреть файл

@ -1,14 +0,0 @@
diff --git a/media/libyuv/libyuv/libyuv.gyp b/media/libyuv/libyuv/libyuv.gyp
index 776510b..51ab531 100644
--- a/media/libyuv/libyuv/libyuv.gyp
+++ b/media/libyuv/libyuv/libyuv.gyp
@@ -33,7 +33,8 @@
'build_msa': 0,
'conditions': [
['(target_arch == "armv7" or target_arch == "armv7s" or \
- (target_arch == "arm" and arm_version >= 7) or target_arch == "arm64")\
+ (target_arch == "arm" and arm_version >= 7) or \
+ (OS != "win" and target_arch == "arm64")) \
and (arm_neon == 1 or arm_neon_optional == 1)', {
'build_neon': 1,
}],

Просмотреть файл

@ -33,8 +33,7 @@
'build_msa': 0, 'build_msa': 0,
'conditions': [ 'conditions': [
['(target_arch == "armv7" or target_arch == "armv7s" or \ ['(target_arch == "armv7" or target_arch == "armv7s" or \
(target_arch == "arm" and arm_version >= 7) or \ (target_arch == "arm" and arm_version >= 7) or target_arch == "arm64")\
(OS != "win" and target_arch == "arm64")) \
and (arm_neon == 1 or arm_neon_optional == 1)', { and (arm_neon == 1 or arm_neon_optional == 1)', {
'build_neon': 1, 'build_neon': 1,
}], }],

Просмотреть файл

@ -52,8 +52,6 @@ def apply_patches(base):
'allow_disabling_asm_avx2.patch', 'allow_disabling_asm_avx2.patch',
# add H444ToARGB() variant # add H444ToARGB() variant
'add_H444ToARGB.patch', 'add_H444ToARGB.patch',
# avoid selecting neon codepaths on AArch64 Windows
'aarch64-windows-noneon.patch',
# fix the x86 mingw-clang build # fix the x86 mingw-clang build
'bug_1491848.patch', 'bug_1491848.patch',
] ]