View | Details | Raw Unified | Return to bug 246756
Collapse All | Expand All

(-)www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_skia_src_opts_SkRasterPipeline__opts.h (+11 lines)
Line 0 Link Here
1
--- src/3rdparty/chromium/third_party/skia/src/opts/SkRasterPipeline_opts.h.orig	2020-05-25 17:49:17 UTC
2
+++ src/3rdparty/chromium/third_party/skia/src/opts/SkRasterPipeline_opts.h
3
@@ -996,7 +996,7 @@ SI F from_half(U16 h) {
4
 
5
 SI U16 to_half(F f) {
6
 #if defined(JUMPER_IS_NEON) && defined(SK_CPU_ARM64) \
7
-    && !defined(SK_BUILD_FOR_GOOGLE3)  // Temporary workaround for some Google3 builds.
8
+    && ! (defined(SK_BUILD_FOR_GOOGLE3 || defined(ARMV8_OS_FREEBSD))  // Temporary workaround for some Google3 builds.
9
     __fp16 fp16 = __fp16(f);
10
     U16 u16;
11
     memcpy(&u16, &fp16, sizeof(U16));
(-)www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_zlib_BUILD.gn (-1 / +10 lines)
Lines 1-6 Link Here
1
--- src/3rdparty/chromium/third_party/zlib/BUILD.gn.orig	2018-11-13 18:25:11 UTC
1
--- src/3rdparty/chromium/third_party/zlib/BUILD.gn.orig	2018-11-13 18:25:11 UTC
2
+++ src/3rdparty/chromium/third_party/zlib/BUILD.gn
2
+++ src/3rdparty/chromium/third_party/zlib/BUILD.gn
3
@@ -359,7 +359,7 @@ static_library("bundled_minizip") {
3
@@ -82,6 +82,8 @@ if (use_arm_neon_optimizations) {
4
       defines = [ "CRC32_ARMV8_CRC32" ]
5
       if (is_android) {
6
         defines += [ "ARMV8_OS_ANDROID" ]
7
+      } else if (is_bsd) {
8
+        defines += [ "ARMV8_OS_FREEBSD" ]
9
       } else if (is_linux || is_chromeos) {
10
         defines += [ "ARMV8_OS_LINUX" ]
11
       } else if (is_fuchsia) {
12
@@ -367,7 +369,7 @@ static_library("bundled_minizip") {
4
     ]
13
     ]
5
   }
14
   }
6
 
15
 
(-)www/qt5-webengine/files/patch-src_3rdparty_chromium_third__party_zlib_arm__features.c (-1 / +18 lines)
Lines 1-6 Link Here
1
--- src/3rdparty/chromium/third_party/zlib/arm_features.c.orig	2020-03-22 20:03:48 UTC
1
--- src/3rdparty/chromium/third_party/zlib/arm_features.c.orig	2020-03-22 20:03:48 UTC
2
+++ src/3rdparty/chromium/third_party/zlib/arm_features.c
2
+++ src/3rdparty/chromium/third_party/zlib/arm_features.c
3
@@ -27,6 +27,15 @@ int ZLIB_INTERNAL arm_cpu_enable_pmull = 0;
3
@@ -12,7 +12,7 @@
4
 int ZLIB_INTERNAL arm_cpu_enable_crc32 = 0;
5
 int ZLIB_INTERNAL arm_cpu_enable_pmull = 0;
6
 
7
-#if defined(ARMV8_OS_ANDROID) || defined(ARMV8_OS_LINUX) || defined(ARMV8_OS_FUCHSIA)
8
+#if defined(ARMV8_OS_ANDROID) || defined(ARMV8_OS_LINUX) || defined(ARMV8_OS_FUCHSIA) || defined(ARMV8_OS_FREEBSD)
9
 #include <pthread.h>
10
 #endif
11
 
12
@@ -27,13 +27,22 @@ int ZLIB_INTERNAL arm_cpu_enable_pmull = 0;
4
 #include <zircon/types.h>
13
 #include <zircon/types.h>
5
 #elif defined(ARMV8_OS_WINDOWS)
14
 #elif defined(ARMV8_OS_WINDOWS)
6
 #include <windows.h>
15
 #include <windows.h>
Lines 16-21 Link Here
16
 #else
25
 #else
17
 #error arm_features.c ARM feature detection in not defined for your platform
26
 #error arm_features.c ARM feature detection in not defined for your platform
18
 #endif
27
 #endif
28
 
29
 static void _arm_check_features(void);
30
 
31
-#if defined(ARMV8_OS_ANDROID) || defined(ARMV8_OS_LINUX) || defined(ARMV8_OS_FUCHSIA)
32
+#if defined(ARMV8_OS_ANDROID) || defined(ARMV8_OS_LINUX) || defined(ARMV8_OS_FUCHSIA) || defined(ARMV8_OS_FREEBSD)
33
 static pthread_once_t cpu_check_inited_once = PTHREAD_ONCE_INIT;
34
 void ZLIB_INTERNAL arm_check_features(void)
35
 {
19
@@ -86,5 +95,12 @@ static void _arm_check_features(void)
36
@@ -86,5 +95,12 @@ static void _arm_check_features(void)
20
 #elif defined(ARMV8_OS_WINDOWS)
37
 #elif defined(ARMV8_OS_WINDOWS)
21
     arm_cpu_enable_crc32 = IsProcessorFeaturePresent(PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE);
38
     arm_cpu_enable_crc32 = IsProcessorFeaturePresent(PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE);

Return to bug 246756