Repository navigation
PanVK Mali (Based on Mesa 26.3.0-devel)
mali-panvk r3
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 MC3 | Exynos 9611 |
Changes since r2
- ARMSX2 (PCSX2) no longer gets killed after a couple of minutes. Its small indexed draws out of a
large streaming vertex buffer made the driver shade, and allocate memory for, every vertex up to
the end of that buffer. The driver now reads the range of indices a draw uses when only
the CPU can have written them. VK_EXT_robustness2: reads past the end of a buffer and through null descriptors return zeros
and such writes are dropped. DXVK requires it for every Direct3D version, so Direct3D 9, 10 and
11 in Winlator-based emulators were refused on the device before.- Geometry shader vertex streams (
geometryStreams), which DXVK requires for Direct3D 10 and 11. - A CPU-cached memory type, so apps that read back what the GPU rendered no longer read through
uncached memory.
The Direct3D requirements were checked against DXVK 2.3.1; BCn textures still have to be decoded
by the emulator's Vulkan wrapper, as most Winlator builds do.
Known issues
- No BCn texture formats (BC1-BC7).
- Direct3D 12 is not supported yet.
- 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. This also applies
to emulators when trying to run complex games. If a complex emulated game manages to boot, it's pure luck. - PanVK is not a conformant Vulkan implementation on Bifrost.
Install
mali-panvk-26.3.0-devel-r3.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. Remove the r2 entry first if the app keeps using the driver it already extracted.
Build from source
./build.sh /path/to/android-ndk on Linux or WSL. See the README for the tools it needs.
This project was developed with heavy use of AI tools. Every change was built and tested on the
phone above before release.