Browse Source

add patch to enable swiftshader from ui/gl/features.gni

Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Rebecca Chang Swee Fun 1 year ago
parent
commit
abb1deb8bb
1 changed files with 25 additions and 0 deletions
  1. 25 0
      0023-ui-gl-enable-swiftshader-for-riscv64.patch

+ 25 - 0
0023-ui-gl-enable-swiftshader-for-riscv64.patch

@@ -0,0 +1,25 @@
+From 186eddd3eeb35ebfb562124b1100f48b75e14a2b Mon Sep 17 00:00:00 2001
+From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
+Date: Fri, 17 Jun 2022 05:49:33 +0000
+Subject: [PATCH] ui: gl: enable swiftshader for riscv64
+
+Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
+---
+ ui/gl/features.gni | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/ui/gl/features.gni b/ui/gl/features.gni
+index 1bbc06c62715..3951bc279222 100644
+--- a/ui/gl/features.gni
++++ b/ui/gl/features.gni
+@@ -31,5 +31,6 @@ declare_args() {
+                         (is_mac && use_egl) || is_chromeos_ash || is_fuchsia) &&
+                        (target_cpu == "x86" || target_cpu == "x64" ||
+                         target_cpu == "arm" || target_cpu == "arm64" ||
+-                        target_cpu == "mipsel" || target_cpu == "mips64el")
++                        target_cpu == "mipsel" || target_cpu == "mips64el" ||
++                        target_cpu == "riscv64")
+ }
+-- 
+2.25.1
+