Update to 5.9.0
* Sat Jun 10 2017 Kevin Kofler <Kevin@tigcc.ticalc.org> - 5.9.0-1
- Update to 5.9.0
- Update version numbers of bundled stuff
- Use bundled libsrtp and protobuf, Chromium dropped unbundling support for them
- Add missing Provides: bundled(hunspell) for the spellchecking added in 5.8
- Rebase linux-pri, no-neon, system-icu-utf, no-sse2, arm-fpu-fix,
openmax-dl-neon and webrtc-neon-detect patches (port to GN)
- Sync system-nspr-prtime patch with Debian (they ported it to GN)
- Rebase fix-extractcflag patch
- Restore NEON runtime detection in Skia, drop old skia-neon patch (rewritten)
- Drop webrtc-neon, v8-gcc7, pdfium-gcc7, wtf-gcc7, fix-open-in-new-tab and
fix-dead-keys patches, fixed upstream
- Update system libvpx/libwebp version requirements (libvpx now F25+ only)
- Drop the flag hacks (-g1 -fno-delete-null-pointer-checks) that are fixed
upstream, force -g2 on x86_64 instead
2017-06-10 13:09:01 +00:00
|
|
|
diff -ur qtwebengine-opensource-src-5.9.0/src/3rdparty/chromium/third_party/openmax_dl/dl/BUILD.gn qtwebengine-opensource-src-5.9.0-openmax-dl-neon/src/3rdparty/chromium/third_party/openmax_dl/dl/BUILD.gn
|
|
|
|
--- qtwebengine-opensource-src-5.9.0/src/3rdparty/chromium/third_party/openmax_dl/dl/BUILD.gn 2017-05-18 16:51:44.000000000 +0200
|
|
|
|
+++ qtwebengine-opensource-src-5.9.0-openmax-dl-neon/src/3rdparty/chromium/third_party/openmax_dl/dl/BUILD.gn 2017-06-10 02:41:10.317340598 +0200
|
|
|
|
@@ -196,9 +196,6 @@
|
|
|
|
]
|
|
|
|
if (arm_optionally_use_neon) {
|
|
|
|
# Run-time NEON detection.
|
|
|
|
- deps = [ "//third_party/android_tools:cpu_features" ]
|
|
|
|
- # To get the __android_log_print routine
|
|
|
|
- libs = [ "log" ]
|
|
|
|
# Detection routine
|
|
|
|
sources += [ "sp/src/arm/detect.c" ]
|
|
|
|
}
|
|
|
|
diff -ur qtwebengine-opensource-src-5.9.0/src/3rdparty/chromium/third_party/openmax_dl/dl/sp/src/arm/detect.c qtwebengine-opensource-src-5.9.0-openmax-dl-neon/src/3rdparty/chromium/third_party/openmax_dl/dl/sp/src/arm/detect.c
|
|
|
|
--- qtwebengine-opensource-src-5.9.0/src/3rdparty/chromium/third_party/openmax_dl/dl/sp/src/arm/detect.c 2017-05-18 16:51:44.000000000 +0200
|
|
|
|
+++ qtwebengine-opensource-src-5.9.0-openmax-dl-neon/src/3rdparty/chromium/third_party/openmax_dl/dl/sp/src/arm/detect.c 2017-06-10 02:38:30.593809570 +0200
|
2016-12-03 21:55:17 +00:00
|
|
|
@@ -9,13 +9,57 @@
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
-#include <cpu-features.h>
|
|
|
|
-
|
|
|
|
-#include "android/log.h"
|
|
|
|
#include "dl/sp/api/omxSP.h"
|
|
|
|
|
|
|
|
+// For ArmCpuCaps()
|
|
|
|
+#include <stdio.h>
|
|
|
|
+#include <string.h>
|
|
|
|
+
|
|
|
|
+// based on libvpx arm_cpudetect.c
|
|
|
|
+static int ArmCpuCaps(const char* cpuinfo_name) {
|
|
|
|
+ char cpuinfo_line[512];
|
|
|
|
+ FILE* f = fopen(cpuinfo_name, "r");
|
|
|
|
+ if (!f) {
|
|
|
|
+ // Assume Neon if /proc/cpuinfo is unavailable.
|
|
|
|
+ // This will occur for Chrome sandbox for Pepper or Render process.
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+ while (fgets(cpuinfo_line, sizeof(cpuinfo_line) - 1, f)) {
|
|
|
|
+ if (memcmp(cpuinfo_line, "Features", 8) == 0) {
|
|
|
|
+ char* p = strstr(cpuinfo_line, " neon");
|
|
|
|
+ if (p && (p[5] == ' ' || p[5] == '\n')) {
|
|
|
|
+ fclose(f);
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+ // aarch64 uses asimd for Neon.
|
|
|
|
+ p = strstr(cpuinfo_line, " asimd");
|
|
|
|
+ if (p && (p[6] == ' ' || p[6] == '\n')) {
|
|
|
|
+ fclose(f);
|
|
|
|
+ return 1;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ fclose(f);
|
|
|
|
+ return 0;
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
int omxSP_HasArmNeon() {
|
|
|
|
- return (android_getCpuFeatures() & ANDROID_CPU_ARM_FEATURE_NEON) != 0;
|
|
|
|
+#if defined(__arm__) || defined(__aarch64__)
|
|
|
|
+// gcc -mfpu=neon defines __ARM_NEON__
|
|
|
|
+// __ARM_NEON__ generates code that requires Neon. NaCL also requires Neon.
|
|
|
|
+// For Linux, /proc/cpuinfo can be tested but without that assume Neon.
|
|
|
|
+#if defined(__ARM_NEON__) || defined(__native_client__) || !defined(__linux__)
|
|
|
|
+ return 1;
|
|
|
|
+// For aarch64(arm64), /proc/cpuinfo's feature is not complete, e.g. no neon
|
|
|
|
+// flag in it.
|
|
|
|
+// So for aarch64, neon enabling is hard coded here.
|
|
|
|
+#elif defined(__aarch64__)
|
|
|
|
+ return 1;
|
|
|
|
+#else
|
|
|
|
+ // Linux arm parse text file for neon detect.
|
|
|
|
+ return ArmCpuCaps("/proc/cpuinfo");
|
|
|
|
+#endif
|
|
|
|
+#endif // __arm__
|
|
|
|
}
|
|
|
|
|
|
|
|
static void SetFFTRoutines() {
|
2017-06-05 22:00:55 +00:00
|
|
|
@@ -24,13 +68,9 @@
|
2016-12-03 21:55:17 +00:00
|
|
|
* forward and inverse FFTs
|
|
|
|
*/
|
|
|
|
if (omxSP_HasArmNeon()) {
|
|
|
|
- __android_log_print(ANDROID_LOG_INFO, "OpenMAX DL FFT",
|
|
|
|
- "Using NEON FFT");
|
|
|
|
omxSP_FFTFwd_RToCCS_F32 = omxSP_FFTFwd_RToCCS_F32_Sfs;
|
|
|
|
omxSP_FFTInv_CCSToR_F32 = omxSP_FFTInv_CCSToR_F32_Sfs;
|
|
|
|
} else {
|
|
|
|
- __android_log_print(ANDROID_LOG_INFO, "OpenMAX DL FFT",
|
|
|
|
- "Using non-NEON FFT");
|
|
|
|
omxSP_FFTFwd_RToCCS_F32 = omxSP_FFTFwd_RToCCS_F32_Sfs_vfp;
|
|
|
|
omxSP_FFTInv_CCSToR_F32 = omxSP_FFTInv_CCSToR_F32_Sfs_vfp;
|
|
|
|
}
|