[bug] Adreno 750: vkcube & vkmark not working
╭─[hsm @ localhost] [~]
╰─❯ vkcube
Selected WSI platform: xcb
vkcube: ./cube/cube.c:4249: demo_select_physical_device: Assertion `!err' failed.
╭─[hsm @ localhost] [~]
╰─❯ vkmark
Error: filesystem error: status: Permission denied [/dev/dri/card0]
╭─[hsm @ localhost] [~]
╰─❯ vulkaninfo
==========
VULKANINFO
==========
Vulkan Instance Version: 1.4.328
Instance Extensions: count = 24
===============================
VK_EXT_acquire_drm_display : extension revision 1
VK_EXT_acquire_xlib_display : extension revision 1
VK_EXT_debug_report : extension revision 10
VK_EXT_debug_utils : extension revision 2
VK_EXT_direct_mode_display : extension revision 1
VK_EXT_display_surface_counter : extension revision 1
VK_EXT_headless_surface : extension revision 1
VK_EXT_surface_maintenance1 : extension revision 1
VK_EXT_swapchain_colorspace : extension revision 5
VK_KHR_device_group_creation : extension revision 1
VK_KHR_display : extension revision 23
VK_KHR_external_fence_capabilities : extension revision 1
VK_KHR_external_memory_capabilities : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2 : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2 : extension revision 1
VK_KHR_portability_enumeration : extension revision 1
VK_KHR_surface : extension revision 25
VK_KHR_surface_protected_capabilities : extension revision 1
VK_KHR_wayland_surface : extension revision 6
VK_KHR_xcb_surface : extension revision 6
VK_KHR_xlib_surface : extension revision 6
VK_LUNARG_direct_driver_loading : extension revision 1
Layers: count = 3
=================
VK_LAYER_INTEL_nullhw (INTEL NULL HW) Vulkan version 1.1.73, layer version 1:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (Turnip Adreno (TM) 750)
Layer-Device Extensions: count = 0
VK_LAYER_MESA_device_select (Linux device selection layer) Vulkan version 1.4.303, layer version 1:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (Turnip Adreno (TM) 750)
Layer-Device Extensions: count = 0
VK_LAYER_MESA_overlay (Mesa Overlay layer) Vulkan version 1.4.303, layer version 1:
Layer Extensions: count = 0
Devices: count = 1
GPU id = 0 (Turnip Adreno (TM) 750)
Layer-Device Extensions: count = 0
Presentable Surfaces:
=====================
GPU id : 0 (Turnip Adreno (TM) 750) [VK_KHR_xcb_surface, VK_KHR_xlib_surface]:
Surface types: count = 2
VK_KHR_xcb_surface
VK_KHR_xlib_surface
Formats: count = 2
SurfaceFormat[0]:
format = FORMAT_B8G8R8A8_SRGB
colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
SurfaceFormat[1]:
format = FORMAT_B8G8R8A8_UNORM
colorSpace = COLOR_SPACE_SRGB_NONLINEAR_KHR
Present Modes: count = 4
PRESENT_MODE_IMMEDIATE_KHR
PRESENT_MODE_MAILBOX_KHR
PRESENT_MODE_FIFO_KHR
PRESENT_MODE_FIFO_RELAXED_KHR
VkSurfaceCapabilitiesKHR:
-------------------------
minImageCount = 3
maxImageCount = 0
currentExtent:
width = 256
height = 256
minImageExtent:
width = 256
height = 256
maxImageExtent:
width = 256
height = 256
maxImageArrayLayers = 1
supportedTransforms: count = 1
SURFACE_TRANSFORM_IDENTITY_BIT_KHR
currentTransform = SURFACE_TRANSFORM_IDENTITY_BIT_KHR
supportedCompositeAlpha: count = 2
COMPOSITE_ALPHA_OPAQUE_BIT_KHR
COMPOSITE_ALPHA_INHERIT_BIT_KHR
supportedUsageFlags: count = 7
IMAGE_USAGE_TRANSFER_SRC_BIT
IMAGE_USAGE_TRANSFER_DST_BIT
IMAGE_USAGE_SAMPLED_BIT
IMAGE_USAGE_STORAGE_BIT
IMAGE_USAGE_COLOR_ATTACHMENT_BIT
IMAGE_USAGE_INPUT_ATTACHMENT_BIT
IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT
VkSurfaceCapabilitiesPresentId2KHR:
-----------------------------------
presentId2Supported = true
VkSurfaceCapabilitiesPresentWait2KHR:
-------------------------------------
presentWait2Supported = true
VkSurfaceProtectedCapabilitiesKHR:
----------------------------------
supportsProtected = false
VK_EXT_surface_maintenance1:
----------------------------
PRESENT_MODE_IMMEDIATE_KHR:
minImageCount = 3
maxImageCount = 0
VkSurfacePresentScalingCapabilitiesKHR:
supportedPresentScaling:
None
supportedPresentGravityX:
None
supportedPresentGravityY:
None
minScaledImageExtent:
width = 256
height = 256
maxScaledImageExtent:
width = 256
height = 256
VkSurfacePresentModeCompatibilityKHR:
presentModeCount = 4
pPresentModes: count = 4
PRESENT_MODE_IMMEDIATE_KHR
PRESENT_MODE_MAILBOX_KHR
PRESENT_MODE_FIFO_KHR
PRESENT_MODE_FIFO_RELAXED_KHR
PRESENT_MODE_MAILBOX_KHR:
minImageCount = 4
maxImageCount = 0
VkSurfacePresentScalingCapabilitiesKHR:
supportedPresentScaling:
None
supportedPresentGravityX:
None
supportedPresentGravityY:
None
minScaledImageExtent:
width = 256
height = 256
maxScaledImageExtent:
width = 256
height = 256
VkSurfacePresentModeCompatibilityKHR:
presentModeCount = 4
pPresentModes: count = 4
PRESENT_MODE_MAILBOX_KHR
PRESENT_MODE_IMMEDIATE_KHR
PRESENT_MODE_FIFO_KHR
PRESENT_MODE_FIFO_RELAXED_KHR
PRESENT_MODE_FIFO_KHR:
minImageCount = 3
maxImageCount = 0
VkSurfacePresentScalingCapabilitiesKHR:
supportedPresentScaling:
None
supportedPresentGravityX:
None
supportedPresentGravityY:
None
minScaledImageExtent:
width = 256
height = 256
maxScaledImageExtent:
width = 256
height = 256
VkSurfacePresentModeCompatibilityKHR:
presentModeCount = 4
pPresentModes: count = 4
PRESENT_MODE_FIFO_KHR
PRESENT_MODE_IMMEDIATE_KHR
PRESENT_MODE_MAILBOX_KHR
PRESENT_MODE_FIFO_RELAXED_KHR
PRESENT_MODE_FIFO_RELAXED_KHR:
minImageCount = 3
maxImageCount = 0
VkSurfacePresentScalingCapabilitiesKHR:
supportedPresentScaling:
None
supportedPresentGravityX:
None
supportedPresentGravityY:
None
minScaledImageExtent:
width = 256
height = 256
maxScaledImageExtent:
width = 256
height = 256
VkSurfacePresentModeCompatibilityKHR:
presentModeCount = 4
pPresentModes: count = 4
PRESENT_MODE_FIFO_RELAXED_KHR
PRESENT_MODE_IMMEDIATE_KHR
PRESENT_MODE_MAILBOX_KHR
PRESENT_MODE_FIFO_KHR
Device Properties and Extensions:
=================================
GPU0:
VkPhysicalDeviceProperties:
---------------------------
apiVersion = 1.4.318 (4211006)
driverVersion = 25.2.99 (104865891)
vendorID = 0x5143
deviceID = 0x43051401
deviceType = PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU
deviceName = Turnip Adreno (TM) 750
pipelineCacheUUID = 860100b9-f235-85ac-5c95-d6c06f81344b
.
.
.
.
.
.
╭─[hsm @ localhost] [~]
╰─❯ fastfetch
_,met$$$$$gg. hsm@localhost
,g$$$$$$$$$$$$$$$P. -------------
,g$$P"" """Y$$.". OS: Debian GNU/Linux forky/sid (forky) aarch64
,$$P' `$$$. Kernel: Linux 6.1.99-android14-11-30958380-abS928NKSS4BYG8
',$$P ,ggs. `$$b: Packages: 1900 (dpkg)
`d$$' ,$P"' . $$$ Shell: bash 5.2.15
$$P d$' , $$P Display (Dex Display): 1920x1080, 60 Hz
$$: $$. - ,d$$' WM: Xfwm4 (X11)
$$; Y$b._ _,d$P' Terminal: xfce4-terminal 1.1.5
Y$$. `.`"Y$$$$P"' CPU: Cortex-A520*2 + Cortex-A720*5 + Cortex-X4 (8) @ 3.40 GHz
`$$b "-.__ GPU: Qualcomm Turnip Adreno (TM) 750 [Integrated]
`Y$$b Memory: 5.84 GiB / 10.83 GiB (54%)
`Y$$. Swap: 2.98 GiB / 8.00 GiB (37%)
`$$b. Disk (/): 187.01 GiB / 460.32 GiB (41%) - erofs [Read-only]
`Y$$b.
`"Y$b._
`""""
╭─[hsm @ localhost] [~]
╰─❯
@lfdevs Hello sir!
For some reason, vkcube and vkmark aren't working on my Qualcomm Snapdragon 8 Gen3 Adreno 750 GPU!
The vulkaninfo command works fine, and mesa zink and kgsl (unstable) also work fine,
but it seems like only the Vulkan-related demos aren't working!
Thank you for your feedback. The same issue also exists on Adreno 730 and Adreno 740: https://github.com/lfdevs/mesa-for-android-container/issues/4
I’m not sure why Zink (which relies on Turnip) works fine, yet Vulkan applications that use Turnip directly fail to run. So far, I’ve only managed to successfully run vkmark on Adreno 660. This appears to be an issue with the original patchset. I’ve tried troubleshooting it but haven’t found any clear leads.
@lfdevs I just checked on my Galaxy Tab S9 Ultra (Snapdragon 8 Gen2: Adreno 740), and it seems to be experiencing the same issue.
It seems to be a common issue with the Adreno 7xx series!
That's strange.
Even with Turnip, which I manually build after patching Termux-X11 DRI3, vkcube and vkmark no longer work in the PRoot Debian environment.
(They definitely worked!)
Zink actually works perfectly with DRI3... This is a very strange behavior!
@hansm629 it's an issue with this repo use any other mesa repo and compile yourself and turnip will work flawlessly
Solved by the commit: https://github.com/lfdevs/mesa-for-android-container/commit/e622b89abacaa0719da0875053a7f27d0117db48