Closed hansm629 closed 1 week ago
@xMeM
When the MESA_VK_WSI_DEBUG=sw
option was added, performance in zink
decreased by approximately 40%, and the same issue as mentioned above still occurs.
I will report the test results for the Adreno 650
and Adreno 740
soon! 😀
(It is likely that the Adreno 740 will have most of the same issues as the Adreno 750.)
$ MESA_LOADER_DRIVER_OVERRIDE=zink MESA_GL_VERSION_OVERRIDE=4.3 MESA_VK_WSI_DEBUG=sw blender
Warning: Falling back to the standard locale ("C")
MESA: error: ZINK: vkCreateImageView failed (VK_ERROR_OUT_OF_HOST_MEMORY)
Writing: /data/data/com.termux/files/usr/tmp/blender.crash.txt
Segmentation fault
$ MESA_LOADER_DRIVER_OVERRIDE=zink MESA_VK_WSI_DEBUG=sw glmark2
=======================================================
glmark2 2023.01
=======================================================
OpenGL Information
GL_VENDOR: Mesa
GL_RENDERER: zink Vulkan 1.3(Adreno (TM) 750 (QUALCOMM_PROPRIETARY))
GL_VERSION: 3.2 (Compatibility Profile) Mesa 24.2.3
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: 463 FrameTime: 2.163 ms
[build] use-vbo=true: FPS: 476 FrameTime: 2.101 ms
[texture] texture-filter=nearest: FPS: 466 FrameTime: 2.148 ms
[texture] texture-filter=linear: FPS: 466 FrameTime: 2.149 ms
[texture] texture-filter=mipmap: FPS: 456 FrameTime: 2.197 ms
[shading] shading=gouraud: FPS: 449 FrameTime: 2.227 ms
[shading] shading=blinn-phong-inf: FPS: 448 FrameTime: 2.234 ms
[shading] shading=phong: FPS: 451 FrameTime: 2.218 ms
[shading] shading=cel: FPS: 448 FrameTime: 2.233 ms
[bump] bump-render=high-poly: FPS: 396 FrameTime: 2.530 ms
[bump] bump-render=normals: FPS: 467 FrameTime: 2.145 ms
[bump] bump-render=height: FPS: 453 FrameTime: 2.209 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 425 FrameTime: 2.358 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 394 FrameTime: 2.539 ms
[pulsar] light=false:quads=5:texture=false: FPS: 417 FrameTime: 2.403 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 299 FrameTime: 3.355 ms
[desktop] effect=shadow:windows=4: FPS: 441 FrameTime: 2.269 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 312 FrameTime: 3.211 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 335 FrameTime: 2.992 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 312 FrameTime: 3.214 ms
[ideas] speed=duration:MESA: error: ZINK: vkCreateGraphicsPipelines failed (VK_ERROR_UNKNOWN)
Segmentation fault
@xMeM
I conducted additional testing on the new build
.
The reported issue is still occurring on the Adreno 750 GPU
.
:)
https://github.com/xMeM/termux-packages/actions/runs/11580975414
mesa-vulkan-icd-wrapper_24.2.5_aarch64.deb
@xMeM
I tested with the latest build.
The reported issue is still occurring on the Adreno 750 GPU
.
https://github.com/xMeM/termux-packages/actions/runs/11684577142
mesa-vulkan-icd-wrapper-dbg_24.2.5-4_aarch64.deb
And when running Supertuxkart
in Vulkan mode, severe artifacts appear in the menu. While there are no artifacts in the game screen, there is significant stuttering.
(This is a common issue for both the Adreno 650 GPU
, Adreno 740 GPU
and Adreno 750 GPU
.)
https://github.com/user-attachments/assets/794c80c2-d19a-4af3-a56d-cef49e7f89ed
@xMeM I have updated the issue description as well! 😀
@xMeM
https://github.com/xMeM/termux-packages/actions/runs/11708288671
mesa-vulkan-icd-wrapper-dbg_24.2.5-6_aarch64.deb
I tested the latest version! The vkmark
performance has improved.
~$ vkmark
=======================================================
vkmark 2017.08
=======================================================
Vendor ID: 0x5143
Device ID: 0x43051401
Device Name: Adreno (TM) 750
Driver Version: 2150604812
Device UUID: fe731e01435100000000011405430000
=======================================================
[vertex] device-local=true: FPS: 2014 FrameTime: 0.497 ms
[vertex] device-local=false: FPS: 1993 FrameTime: 0.502 ms
[texture] anisotropy=0: FPS: 1919 FrameTime: 0.521 ms
[texture] anisotropy=16: FPS: 1888 FrameTime: 0.530 ms
[shading] shading=gouraud: FPS: 2036 FrameTime: 0.491 ms
[shading] shading=blinn-phong-inf: FPS: 1982 FrameTime: 0.505 ms
[shading] shading=phong: FPS: 1993 FrameTime: 0.502 ms
[shading] shading=cel: FPS: 2032 FrameTime: 0.492 ms
[effect2d] kernel=edge: FPS: 2094 FrameTime: 0.478 ms
[effect2d] kernel=blur: FPS: 1792 FrameTime: 0.558 ms
[desktop] <default>: FPS: 2039 FrameTime: 0.490 ms
[cube] <default>: FPS: 2251 FrameTime: 0.444 ms
[clear] <default>: FPS: 2074 FrameTime: 0.482 ms
=======================================================
vkmark Score: 2008
=======================================================
Previously, it was around 1500 score, but with the latest build, it has reached a score of 2000!
(vulkan-wsi-layer
performance was over 6000–7000.)
I also tested Zink with the MESA_VK_WSI_DEBUG=blit
environment variable added, but the existing issues remain unchanged.
~$ MESA_VK_WSI_DEBUG=blit 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.6
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: 1016 FrameTime: 0.985 ms
[build] use-vbo=true: FPS: 1050 FrameTime: 0.953 ms
[texture] texture-filter=nearest: FPS: 998 FrameTime: 1.003 ms
[texture] texture-filter=linear: FPS: 936 FrameTime: 1.068 ms
[texture] texture-filter=mipmap: FPS: 896 FrameTime: 1.117 ms
[shading] shading=gouraud: FPS: 855 FrameTime: 1.171 ms
[shading] shading=blinn-phong-inf: FPS: 854 FrameTime: 1.171 ms
[shading] shading=phong: FPS: 847 FrameTime: 1.182 ms
[shading] shading=cel: FPS: 845 FrameTime: 1.184 ms
[bump] bump-render=high-poly: FPS: 670 FrameTime: 1.494 ms
[bump] bump-render=normals: FPS: 908 FrameTime: 1.102 ms
[bump] bump-render=height: FPS: 897 FrameTime: 1.116 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 819 FrameTime: 1.222 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 693 FrameTime: 1.444 ms
[pulsar] light=false:quads=5:texture=false: FPS: 771 FrameTime: 1.297 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 348 FrameTime: 2.879 ms
[desktop] effect=shadow:windows=4: FPS: 643 FrameTime: 1.557 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 385 FrameTime: 2.600 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 462 FrameTime: 2.168 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 440 FrameTime: 2.275 ms
[ideas] speed=duration:MESA: error: ZINK: vkCreateGraphicsPipelines failed (VK_ERROR_UNKNOWN)
Segmentation fault
~$ MESA_VK_WSI_DEBUG=blit blender
Warning: Falling back to the standard locale ("C")
../src/src/vulkan/wsi/wsi_common_x11.c:1910: Swapchain status changed to VK_SUBOPTIMAL_KHR
MESA: error: ZINK: vkCreateImageView failed (VK_ERROR_OUT_OF_HOST_MEMORY)
Writing: /data/data/com.termux/files/usr/tmp/blender.crash.txt
Segmentation fault
Interestingly, the glmark2
performance is higher with the MESA_VK_WSI_DEBUG=blit
environment variable added.
Below are the glmark2
performance results without the MESA_VK_WSI_DEBUG=blit
environment variable.
~$ 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.6
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: 755 FrameTime: 1.325 ms
[build] use-vbo=true: FPS: 762 FrameTime: 1.314 ms
[texture] texture-filter=nearest: FPS: 750 FrameTime: 1.333 ms
[texture] texture-filter=linear: FPS: 750 FrameTime: 1.335 ms
[texture] texture-filter=mipmap: FPS: 736 FrameTime: 1.360 ms
[shading] shading=gouraud: FPS: 715 FrameTime: 1.400 ms
[shading] shading=blinn-phong-inf: FPS: 722 FrameTime: 1.386 ms
[shading] shading=phong: FPS: 716 FrameTime: 1.397 ms
[shading] shading=cel: FPS: 713 FrameTime: 1.404 ms
[bump] bump-render=high-poly: FPS: 588 FrameTime: 1.701 ms
[bump] bump-render=normals: FPS: 756 FrameTime: 1.323 ms
[bump] bump-render=height: FPS: 748 FrameTime: 1.338 ms
[effect2d] kernel=0,1,0;1,-4,1;0,1,0;: FPS: 671 FrameTime: 1.490 ms
[effect2d] kernel=1,1,1,1,1;1,1,1,1,1;1,1,1,1,1;: FPS: 593 FrameTime: 1.687 ms
[pulsar] light=false:quads=5:texture=false: FPS: 627 FrameTime: 1.596 ms
[desktop] blur-radius=5:effect=blur:passes=1:separable=true:windows=4: FPS: 372 FrameTime: 2.691 ms
[desktop] effect=shadow:windows=4: FPS: 579 FrameTime: 1.728 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 329 FrameTime: 3.041 ms
[buffer] columns=200:interleave=false:update-dispersion=0.9:update-fraction=0.5:update-method=subdata: FPS: 449 FrameTime: 2.227 ms
[buffer] columns=200:interleave=true:update-dispersion=0.9:update-fraction=0.5:update-method=map: FPS: 396 FrameTime: 2.531 ms
[ideas] speed=duration:MESA: error: ZINK: vkCreateGraphicsPipelines failed (VK_ERROR_UNKNOWN)
Segmentation fault
and Supertuxkart
, when running in Vulkan
renderer mode with the MESA_VK_WSI_DEBUG=blit
variable added, the artifacts are no longer present However, the low frame rate and stuttering still seem to persist.
@xMeM For better readability, I will close this issue and re-report the Adreno 750 GPU issues separately. :)
@xMeM
Thank you so much for developing the
mesa-vulkan-wrapper-icd
! I'll conduct tests on the devices I have and will continue to report any issues I find!https://github.com/xMeM/termux-packages/actions/runs/11684577142
mesa-vulkan-icd-wrapper-dbg_24.2.5-4_aarch64.deb
Qualcomm Adreno 750
)Termux-info
``` Termux Variables: TERMUX_API_VERSION=0.50.1 TERMUX_APK_RELEASE=GITHUB TERMUX_APP_PACKAGE_MANAGER=apt TERMUX_APP_PID=9034 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://mirrors.de.sahilister.net/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://packages-cf.termux.dev/apt/termux-x11/ x11 main Updatable packages: python-pip/stable 24.3.1 all [upgradable from: 24.3] termux-tools version: 1.44.2 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 ```
issue list
1. vkmark performance issue
vkmark
works well. However, performance has dropped to nearly 1/6 of the previousvulkan-wsi-layer
level. (In the previous commit, vkmark up to5000-6000 score
)2. mesa-24.x.x Zink work issue
For the
Adreno 750
, zink works to some extent with bothmesa_24.0.8-1_aarch64.deb
from theTermux main repo
andmesa_24.2.3-1_aarch64.deb
that sir build.However, it does not work perfectly.
In
glmark2 & glmark2-es2
, the [desktop] section displays a black screen, and [ideas] throws an error, "MESA: error: ZINK: vkCreateGraphicsPipelines failed (VK_ERROR_UNKNOWN)
," resulting in a segmentation fault.This causes glmark2 to force close.
※ [desktop] section displays a black screen
Blender 3D
does not run and displays the following error.Shotcut
launches with a black screen.When running
SuperTuxKart
, only the background image is displayed, and the UI does not appear.3. Supertuxkart Vulkan mode screen issue (update : 2024-11-05)
Supertuxkart
in Vulkan mode, severe artifacts appear in the menu. While there are no artifacts in the game screen, there is significant stuttering. (This is a common issue for both theAdreno 740 GPU
andAdreno 750 GPU
.)supertuxkart --render-driver=vulkan
https://github.com/user-attachments/assets/794c80c2-d19a-4af3-a56d-cef49e7f89ed
Extra Test
The
Adreno 750
runsvkcube
well, andvkmark
works smoothly with both the1920x1080
andfullscreen
options.Interestingly, however,
mesa-zink_22.0.5 (tur-repo)
does not seem to work.It appears that
mesa-zink_22.0.5 (tur-repo)
works onAdreno 650
andAdreno 660
, but compatibility issues may begin with theAdreno 7xx series
.I’ll report the results for
Adreno 650
soon as well.