Skip to content
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

[Bug]: OpenGL ES is not working with Zink on mesa-24.2.7. #22300

Open
hansm629 opened this issue Nov 17, 2024 · 6 comments
Open

[Bug]: OpenGL ES is not working with Zink on mesa-24.2.7. #22300

hansm629 opened this issue Nov 17, 2024 · 6 comments
Labels
bug report Something is not working properly untriaged

Comments

@hansm629
Copy link

hansm629 commented Nov 17, 2024

Problem description

In the latest builds of mesa-24.2.6 and mesa-24.2.7, OpenGL ES is not working with Zink.
It seems to be running with llvmpipe instead.

What steps will reproduce the bug?

~$ MESA_LOADER_DRIVER_OVERRIDE=zink glmark2
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      Mesa
    GL_RENDERER:    zink Vulkan 1.3(Adreno (TM) 750 (QUALCOMM_PROPRIETARY))
    GL_VERSION:     4.6 (Compatibility Profile) Mesa 24.2.7
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=24 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 680 FrameTime: 1.471 ms
[build] use-vbo=true: FPS: 635 FrameTime: 1.577 ms
~$ MESA_LOADER_DRIVER_OVERRIDE=zink glmark2-es2
libEGL warning: DRI3: Screen seems not DRI3 capable
=======================================================
    glmark2 2023.01
=======================================================
    OpenGL Information
    GL_VENDOR:      Mesa
    GL_RENDERER:    llvmpipe (LLVM 19.1.3, 128 bits)
    GL_VERSION:     OpenGL ES 3.2 Mesa 24.2.7
    Surface Config: buf=32 r=8 g=8 b=8 a=8 depth=32 stencil=0 samples=0
    Surface Size:   800x600 windowed
=======================================================
[build] use-vbo=false: FPS: 165 FrameTime: 6.066 ms
[build] use-vbo=true: FPS: 170 FrameTime: 5.890 ms

What is the expected behavior?

No response

System information

Termux Variables:
TERMUX_API_VERSION=0.50.1
TERMUX_APK_RELEASE=GITHUB
TERMUX_APP_PACKAGE_MANAGER=apt
TERMUX_APP_PID=27793
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
TERMUX_VERSION=0.118.1
TERMUX__USER_ID=0
Packages CPU architecture:
aarch64
Subscribed repositories:
# sources.list
deb https://md.mirrors.hacktegic.com/termux/termux-main stable main
# tur-repo (sources.list.d/tur.list)
deb https://tur.kcubeterm.com tur-packages tur tur-on-device tur-continuous
# x11-repo (sources.list.d/x11.list)
deb https://md.mirrors.hacktegic.com/termux/termux-x11 x11 main
Updatable packages:
All packages up to date
termux-tools version:
1.44.3
Android version:
14
Kernel build information:
Linux localhost 6.1.57-android14-11-29543898-abS928NKSS3AXJ1 #1 SMP PREEMPT Wed Oct  2 02:37:30 UTC 2024 aarch64 Android
Device manufacturer:
samsung
Device model:
SM-S928N
LD Variables:
LD_LIBRARY_PATH=
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
Installed termux plugins:
com.termux.widget versionCode:13
com.termux.x11 versionCode:14
com.termux.api versionCode:51
@hansm629 hansm629 added bug report Something is not working properly untriaged labels Nov 17, 2024
@813ethan
Copy link

813ethan commented Nov 23, 2024

have the same problem too, after mesa-24.2.5 update

@Biswa96
Copy link
Member

Biswa96 commented Nov 23, 2024

Are the outputs in original post expected results or actual results?

@813ethan
Copy link

813ethan commented Nov 23, 2024

can be replicated with mesa-vulkan-icd-freedreno-dri3 or mesa-vulkan-icd-wrapper and mesa (since 24.2.5, not xMeM's kgsl version)

@hansm629
Copy link
Author

@Biswa96
Here are the actual results:
OpenGL ES does not work with zink at all and only runs on llvmpipe.😢

@hansm629
Copy link
Author

@Biswa96
It seems that by xMeM has created a patch for Zink.

https://github.com/xMeM/termux-packages/blob/dev/mesa/packages/mesa/0010-fix-zink.patch

@813ethan
Copy link

any updates for this? its been a while now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Something is not working properly untriaged
Projects
None yet
Development

No branches or pull requests

3 participants