From 4182a4d0e229b6b70c7e1f83deb0131132deb2f5 Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Mon, 12 Jun 2017 12:34:02 +0200 Subject: [PATCH] no-sse2 patch: Only enable SSE2 in wsola-internal.cc if __SSE2__ Runtime detection would be nice to have, but for now this is the same state as in 5.8. NEON is also not runtime-detected there. The x86_64 and aarch64 builds will get the SIMD optimizations, the i686 and armv7hl ones won't for now. --- qtwebengine-opensource-src-5.9.0-no-sse2.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/qtwebengine-opensource-src-5.9.0-no-sse2.patch b/qtwebengine-opensource-src-5.9.0-no-sse2.patch index b7cf31b..c118908 100644 --- a/qtwebengine-opensource-src-5.9.0-no-sse2.patch +++ b/qtwebengine-opensource-src-5.9.0-no-sse2.patch @@ -1595,6 +1595,18 @@ diff -Nur qtwebengine-opensource-src-5.9.0/src/3rdparty/chromium/media/BUILD.gn } # TODO(watk): Refactor tests that could be made to run on Android. See +diff -Nur qtwebengine-opensource-src-5.9.0/src/3rdparty/chromium/media/filters/wsola_internals.cc qtwebengine-opensource-src-5.9.0-no-sse2/src/3rdparty/chromium/media/filters/wsola_internals.cc +--- qtwebengine-opensource-src-5.9.0/src/3rdparty/chromium/media/filters/wsola_internals.cc 2017-05-18 16:51:44.000000000 +0200 ++++ qtwebengine-opensource-src-5.9.0-no-sse2/src/3rdparty/chromium/media/filters/wsola_internals.cc 2017-06-12 12:30:26.903281839 +0200 +@@ -15,7 +15,7 @@ + #include "base/logging.h" + #include "media/base/audio_bus.h" + +-#if defined(ARCH_CPU_X86_FAMILY) ++#if defined(ARCH_CPU_X86_FAMILY) && defined(__SSE2__) + #define USE_SIMD 1 + #include + #elif defined(ARCH_CPU_ARM_FAMILY) && defined(USE_NEON) diff -Nur qtwebengine-opensource-src-5.9.0/src/3rdparty/chromium/skia/BUILD.gn qtwebengine-opensource-src-5.9.0-no-sse2/src/3rdparty/chromium/skia/BUILD.gn --- qtwebengine-opensource-src-5.9.0/src/3rdparty/chromium/skia/BUILD.gn 2017-05-18 16:51:44.000000000 +0200 +++ qtwebengine-opensource-src-5.9.0-no-sse2/src/3rdparty/chromium/skia/BUILD.gn 2017-06-11 12:15:56.825339699 +0200