-
Notifications
You must be signed in to change notification settings - Fork 1k
GLES failing to run on mobile linux #6984
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
After discussing with the FuriLabs folks they mentioned it could potentially be caused by this ticket on the libhybris side that is causing issues with TLS in GL but aren't completely sure if the two are related. |
Alright, we can't really help with this one, but if it turns out we're doing something we shouldn't, let us know. |
Hello @cwfitzgerald I decided to give this a go on some more devices to see if it is an issue isolated to halium or just the GLES renderer. So far it seems like it might actually be a WGPU gles issue. I tested the same process on my Pinephone Pro which has a Mali-T860 supported by Panfrost and supports GLES 3.1 and it also fails to run any of the demos while glxgears works. Here is WGPU_BACKEND=gl wgpu-info on the pinephone pro [2025-04-22T21:19:55Z ERROR wgpu_hal::gles::egl] EGL 'eglCreateContext' code 0x3009: eglCreateContext
[2025-04-22T21:19:55Z ERROR wgpu_hal::gles::egl] EGL 'eglCreateContext' code 0x3009: eglCreateContext I also asked some others to try and they tested a oneplus 6 and when running in vulkan mode WGPU works correctly which is great! but when they force gl via WGPU_BACKEND=gl it runs into an error and they have support for gles 3.2 Can find info on this here https://mastodon.social/@[email protected]/114382401316947836 |
for preservation sake here is the relevant mastodon conversation this is on a OP6 @Luigi311 No luck with GL Guido Günther @sajattack @Luigi311 Can confirm that wgpu demos work fine with vulkan on OP6 with #phosh/#phoc but GL fails with Wayland and X11 (although eglinfo reports a GLES 3.2 profile) so that looks like something in wgpu. |
Description
I am unable to run wgpu on a halium linux device. I am testing with a FuriLabs FLX1 which has a mediatek dimensity 900 and has support for opengl es but it seems to fail to run in WGPU. It is able to run glxgears perfectly but WGPU fails to run. I have also tested iced examples and they only run when i force WGPU to use an invalid render, WGPU_BACKEND=blah, causing iced to software render instead.
Repro steps
Expected vs observed behavior
I expect the examples to render using the GL/GLES backend but instead it fails with a
error which used to be the following on the v22 branch and is what appears in iced
On the v22 branch wgpu_info also progressed further and displayed the following
and on v24 it displays
Extra materials
Attached are wgpu_info and shadows ran with RUST_LOG=trace. What seems weird to me is it says Driver: for the gl device but everything else seems valid such as the opengl es version.
Platform
Device: FuriLabs FLX1
Kernel: 4.19
Kernel Type: Downstream Halium based utilizing android drivers
WGPU Version: 24.0.1 compiled natively from branch v24 f6a4834
OS: Furios (Debian derivative)
Display: Wayland
Opengl ES Version: 3.2
wgpu_example.txt
wgpu_info.txt
glxinfo.txt
The text was updated successfully, but these errors were encountered: