浏览代码

third_party: update patch content

Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Rebecca Chang Swee Fun 2 年之前
父节点
当前提交
1f39c24ebd

文件差异内容过多而无法显示
+ 37394 - 95
third_party/0001-third-party-swiftshader.patch


+ 13 - 0
third_party/0002-third-party-angle.patch

@@ -26,3 +26,16 @@ index 457b41792..a367d72f5 100644
      angle_64bit_current_cpu = true
    } else if (current_cpu == "arm" || current_cpu == "x86" ||
               current_cpu == "mipsel" || current_cpu == "s390" ||
+diff --git a/src/common/platform.h b/src/common/platform.h
+index c39c7e040..bd8a0a073 100644
+--- a/src/common/platform.h
++++ b/src/common/platform.h
+@@ -102,7 +102,7 @@
+ #endif
+ 
+ // Mips and arm devices need to include stddef for size_t.
+-#if defined(__mips__) || defined(__arm__) || defined(__aarch64__)
++#if defined(__mips__) || defined(__arm__) || defined(__aarch64__) || defined(__riscv)
+ #    include <stddef.h>
+ #endif
+ 

+ 2 - 2
third_party/0003-third-party-dawn.patch

@@ -1,5 +1,5 @@
 diff --git a/src/dawn/common/Platform.h b/src/dawn/common/Platform.h
-index f9471021..81fe7840 100644
+index f9471021..cde97427 100644
 --- a/src/dawn/common/Platform.h
 +++ b/src/dawn/common/Platform.h
 @@ -68,7 +68,7 @@
@@ -7,7 +7,7 @@ index f9471021..81fe7840 100644
  
  #if defined(_WIN64) || defined(__aarch64__) || defined(__x86_64__) || defined(__mips64__) || \
 -    defined(__s390x__) || defined(__PPC64__)
-+    defined(__s390x__) || defined(__PPC64__) || defined(__riscv)
++    defined(__s390x__) || defined(__PPC64__) || (defined(__riscv) && __riscv_xlen == 64)
  #    define DAWN_PLATFORM_64_BIT 1
  static_assert(sizeof(sizeof(char)) == 8, "Expect sizeof(size_t) == 8");
  #elif defined(_WIN32) || defined(__arm__) || defined(__i386__) || defined(__mips32__) || \

+ 29 - 0
third_party/0006-third-party-webrtc.patch

@@ -23,6 +23,19 @@ index da328b48b0..719da297a9 100644
  #include "absl/types/optional.h"
  #include "rtc_base/bitstream_reader.h"
  
+diff --git a/modules/desktop_capture/differ_block.cc b/modules/desktop_capture/differ_block.cc
+index 4f0c5430c9..a89fcc9753 100644
+--- a/modules/desktop_capture/differ_block.cc
++++ b/modules/desktop_capture/differ_block.cc
+@@ -30,7 +30,7 @@ bool VectorDifference(const uint8_t* image1, const uint8_t* image2) {
+   static bool (*diff_proc)(const uint8_t*, const uint8_t*) = nullptr;
+ 
+   if (!diff_proc) {
+-#if defined(WEBRTC_ARCH_ARM_FAMILY) || defined(WEBRTC_ARCH_MIPS_FAMILY)
++#if defined(WEBRTC_ARCH_ARM_FAMILY) || defined(WEBRTC_ARCH_MIPS_FAMILY) || defined(WEBRTC_ARCH_RISCV_FAMILY)
+     // For ARM and MIPS processors, always use C version.
+     // TODO(hclam): Implement a NEON version.
+     diff_proc = &VectorDifference_C;
 diff --git a/modules/include/module_common_types_public.h b/modules/include/module_common_types_public.h
 index 345e45ce12..8338a51462 100644
 --- a/modules/include/module_common_types_public.h
@@ -59,3 +72,19 @@ index 85d1fa00d7..262b141b93 100644
  #include <string>
  #include <vector>
  
+diff --git a/rtc_base/system/arch.h b/rtc_base/system/arch.h
+index be2367b85f..dfff855bae 100644
+--- a/rtc_base/system/arch.h
++++ b/rtc_base/system/arch.h
+@@ -68,9 +68,11 @@
+ #endif
+ #define WEBRTC_ARCH_BIG_ENDIAN
+ #elif defined(__riscv) && __riscv_xlen == 64
++#define WEBRTC_ARCH_RISCV_FAMILY
+ #define WEBRTC_ARCH_64_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
+ #elif defined(__riscv) && __riscv_xlen == 32
++#define WEBRTC_ARCH_RISCV_FAMILY
+ #define WEBRTC_ARCH_32_BITS
+ #define WEBRTC_ARCH_LITTLE_ENDIAN
+ #elif defined(__pnacl__)

部分文件因为文件数量过多而无法显示