Skip to content

PanVK Mali (Based on Mesa 26.3.0-devel)

Choose a tag to compare

@JimVulkan JimVulkan released this 24 Sep 21:24
· 8 commits to main since this release
8e8c158

mali-panvk r2

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

The geometry shader, tessellation, transform feedback, draw, descriptor, clipping and primitive
restart test matrices give the same results as r1.

Changes since r1

  • Calibrated timestamps (VK_KHR_calibrated_timestamps, VK_EXT_calibrated_timestamps),
    VK_KHR_shader_clock and VK_EXT_present_timing on kbase. The GPU's timestamp is the SoC's
    system counter, which the driver now reads without the kernel.
  • Android driver options (the debug.mesa.* properties) are looked up once instead of on every
    shader, which also cuts the logcat spam from denied vendor.* property lookups.
  • Built from the same source as RADV and RadeonSI for Xclipse and Panfrost for Mali, in
    mesa-unified-drivers.

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-r2.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 r1 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.