-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
addpkg(main/mesa-vulkan-icd-wrapper): Android Vulkan wrapper #22500
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
base: master
Are you sure you want to change the base?
Conversation
|
For some reasons latest termux-x11 falls with segmentation fault if I launch vkcube. Will investigate it. |
|
Does this support Adreno 505 GPU? I got the following errors. |
|
Uninstall vulkan-wsi-layer , it is no longer needed. |
|
Thanks for the hint. Now, vkcube is working but vulkaninfo fails. |
|
Does not work fine on my device. I get this in X server log. |
This is an issue with vulkan-tools , fixed by KhronosGroup/Vulkan-Tools@2744de9. |
|
Is there any reason why CI built libwayland-protocols and not the actual package? @sylirre ? |
|
@twaik CI built these packages:
icd wrapper has I don't see missing packages. |
|
Oh, I was checking the x86_64 version. |
|
Not tested on x86_64 devices. |
I changed the Usage of AHardwareBuffer, can you try again? |
|
Unfortunately the package is stripped and debug symbols are disabled so there is no much info. |
|
@xMeM vkmark_clear_flickering_issue.mp4 |
|
@xMeM |
|
@xMeM |
|
This version (24.3.1) stopped working with all applications except |
|
It's working with lasted termux-x11 update https://github.com/termux/termux-x11/releases/tag/nightly
|
Updated termux-x11 and install new version of termux-x11-nightly. Nothing change |
|
I managed to get better crash log |
It's working here with lasted mesa wrapper and lasted termux-x11 ~ $ termux-x11 -xstartup vkcube |
|
@xMeM suggestion. Some devices support BGRA format of AHardwareBuffers. It is enough to pass |
|
I also that when running vulkaninfo with termux-x11 this error occurs This error also occurs in version 24.2.5 vulkan wrapper |
|
Even though the blacklist was removed it does not work on x86_64: vulkaninfo and glxgears with zink works fine somehow. |
|
Here are my It is a model equipped with Samsung Exynos2400 It works very well in most environments. but vulkaninfo
vkmark
glxinfo -B
glmark2
glmark2-es2
clinfo
|
|
@xMeM
This is a common symptom in the above devices. Interestingly, Can you fix it? |
|
@DienoX unfortunately, I don't know, but I do know that if you have a rooted device and unlocked bootloader AND custom ROM, there is a way to edit your ROM to forcibly delete the original |
September 25 2025
|
|
@robertkirkman |
I believe it's possible to just directly integrate adrenotools, e.g. https://github.com/leegao/bionic-vulkan-wrapper/blob/wrapper/src/vulkan/wrapper/wrapper_instance.c#L79 |
|
@leegao Do you know how to use this ready-made .so file that is available for download to work in termux? I'm wondering how to use adrenotools with this file. But I can't think of anything quickly without searching through the source code. |
|
@DienoX that repo is a fork off of https://gitlab.freedesktop.org/Pipetto-crypto/mesa/-/tree/wrapper?ref_type=heads which was used in the Bionic/cmod forks of Winlator, which is itself a fork of xMem's wrapper with a few Winlator specific additions - including the ability to load other ICDs via Adrenotools. It should be possible to yank out the get_vulkan_handle_icd() function and replace https://github.com/xMeM/mesa/blob/e65c7eb6ee2f9903c3256f2677beb1d98464103f/src/vulkan/wrapper/wrapper_instance.c#L68 with that, then add libadrenotools as a dependency in the build rules to get this to work in the OG wrapper |
|
@leegao it sounds very interesting, if you know how, then you can make a PR of the " |
|
If only it could be introduced to the official Termux repository and with support Adrenotools that would be amazing. |
Is this issue fixed for now? The same issues also happened when using the wrapper with qualcomm's glibc vulkan driver |
|
Sorry for the late reply. Currently, I'm experiencing the same issue in both By the way, Or are you saying you loaded the Qualcomm vulkan driver into the glibc environment via |
yes there are |
|
@fish4terrisa-MSDSM So, does this mean that I can use the |
never tested in proot or termux glibc, only tested in lxc. Idk if selinux will do something and break the driver... I think it's gonna be working tho, given that with this wrapper it doesnt even use dma_heap, but i'm really not so sure |
|
Which is currently the best wrapper/design for the Snapdragon Elite? |
Sir, thank you for your guide and patches. After several attempts, I finally successfully built this package. I tested it on three devices, and it worked well on most of them, except that Zink didn't work on Adreno 730. The detailed test results are as follows:
Adreno 830vkmarkglmark2 (Zink)glmark2-es2 (Zink)Mali-G78 MP20vkmarkglmark2 (Zink)glmark2-es2 (Zink)Adreno 730vkmarkglmark2 (Zink)glmark2-es2 (Zink)Moreover, it’s encouraging that Screenrecorder-2025-11-10-17-10-38-526_1.mp4`blender4` on the other two devices (using `vulkan-wrapper-android`) |
Wrap the Android system Vulkan library into an ICD and provides X11 platform surface support.