Source: firefox
Severity: wishlist
Tags: patch
Version: 119.0.1-1
User: debian-ri...@lists.debian.org
Usertags: riscv64
X-Debbugs-Cc: debian-ri...@lists.debian.org

Hi,

Now for some riscv64 real hardware, like licheepi4a/versionfive2(vf2),
there is only gles support for display. So if we use firefox on these
hardwares, we can not use hardware webrender only software webrender
works.

I just built firefox based on 119.0.1-1 with gles support then can use
hardware webrender on licheepi4a.

In the meantime, I've sent this report upstream also. see:
https://bugzilla.mozilla.org/show_bug.cgi?id=1865601

If upstream takes too long time to response with it, hoping the support
can be uploaded on the next upload so that to improve the the user 
experience on firefox for riscv64 platform.

Please let me know any issues, thanks.

-- 
Regards,
--
  Bo YU

Description: add gles support for riscv64
 Now on some riscv64 hardware like vf2/licheepi4a only has gles support.
Author: BO YU <tsu.y...@gmail.com>
Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1865601 
Last-Update: 2023-11-18
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/toolkit/xre/glxtest/glxtest.cpp
+++ b/toolkit/xre/glxtest/glxtest.cpp
@@ -435,7 +435,7 @@
   PFNGLGETSTRING glGetString =
       cast<PFNGLGETSTRING>(eglGetProcAddress("glGetString"));
 
-#if defined(__arm__) || defined(__aarch64__)
+#if defined(__arm__) || defined(__aarch64__) || defined(__riscv) && __riscv_xlen == 64
   bool useGles = true;
 #else
   bool useGles = false;

Attachment: signature.asc
Description: PGP signature

Reply via email to