Repository navigation
PanVK Mali (Based on Mesa 26.3.0-devel)
mali-panvk r1
First release of PanVK for Arm Mali Bifrost GPUs on stock Android. Mesa's PanVK Vulkan driver runs on
the kernel driver the phone already has (Arm's kbase, /dev/mali0): no root, no custom kernel.
Based on Mesa 26.3.0-devel; the driver reports Vulkan 1.3.
Tested on
| Phone | GPU | SoC |
|---|---|---|
| Galaxy S10e | Mali-G76 MC12 | Exynos 9820 |
| Galaxy Tab S6 Lite | Mali-G72 MP3 | Exynos 9611 |
| Galaxy A31 | Mali-G52 MC2 | MediaTek Helio P65 |
What works
- Geometry shaders, tessellation and transform feedback, which Bifrost has no hardware for, emulated
with compute jobs. Indirect, indexed, instanced and multi-draw calls work with all of them. - Presentation through Android's gralloc, including MediaTek's handle layout.
- Minecraft Java 26.2 through its own Vulkan renderer (MojoLauncher): 21-29 fps on the S10e, about
20 fps on the A31. The stock Mali driver cannot run it, because it only exposes Vulkan 1.1.
Changes that went into this release
- Draw overhead: indirect-draw helpers are batched into one scan and one patch job per render pass,
the batches of a submission go to the kernel in one call, and descriptors are copied on the CPU when a command
buffer is recorded. Minecraft on the S10e went from about 10 fps to 21-29 fps. - Submission is asynchronous: vkQueueSubmit returns once the work is queued, and a completion thread
signals fences and semaphores. - MediaTek kbase support: synchronization objects live in the driver (MediaTek's kernel rejects the
DRM sync ioctls), and shader scratch memory is sized from the GPU's reported TLS allocation, which
fixes random GPU faults on the G52. - MediaTek window buffers: swapchain buffers are requested in a layout MediaTek's allocator keeps
uncompressed. Before this, games presenting through a TextureView showed a black
screen. - The package exports only the Vulkan loader entry points.
Known issues
- No BCn texture formats (BC1-BC7).
- On phones with 4 GB of RAM or less, give Minecraft about 600 MB of Java heap. GPU memory comes out
of the same RAM, and with a 1 GB heap the system kills the game while it loads a world. - PanVK is not a conformant Vulkan implementation on Bifrost.
Install
mali-panvk-26.3.0-devel-r1.zip is a driver package for emulators and launchers that load custom
Vulkan drivers from a zip (meta.json + libvulkan_panfrost.so). Android 12 (API 31) or newer,
64-bit.