Repository navigation
mali-panvk r10
PanVK for Arm Mali 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
27.0.0-devel.
mali-panvk-27.0.0-devel-r10.zip, sha256
7e97db4d79d81ec9461d1e0676b62a865561cb56e21c151693aa25ffbe749f1c. Built from 58f2c55.
Supported GPUs
| Architecture | GPUs | Vulkan |
|---|---|---|
| Bifrost | Mali-G31, G51, G52, G71, G72, G76 | 1.4 (1.3 on the G71 and others with fewer than 8 colour attachments) |
| Valhall, first generation | Mali-G57, G68, G77, G78 | 1.4 |
| Valhall and 5th generation with the command stream frontend | Mali-G610, G710, G615, G715, G720, Immortalis-G925, Mali-G1-Ultra | 1.4 (G610, G710 and G715 untested) |
Tested on
| Device | GPU | SoC |
|---|---|---|
| Galaxy S10e | Mali-G76 MC12 | Exynos 9820 |
| Galaxy Tab S10 Ultra | Immortalis-G720 MC12 | MediaTek Dimensity 9300+ |
r9 was tested on the full device list in its notes. The changes below were checked against Arm's
own driver on the Galaxy S10e and the Tab S10 Ultra. On the S10e, all 10 draw, geometry shader,
transform feedback and clipping test matrices give the same results as r9.
Changes since r9
- Fixed: the driver would not install in Bannerlator and other Winlator-based launchers
(and possibly other emulators as well). The package name contained a slash ("Bifrost/Valhall"),
which these launchers take as a folder separator, so the install was left behind as a driver called "tmp"
that would not load. If a "tmp" entry is left from an earlier install, remove it before installing r10. - Fixed: Bannerlator and Winlator falling back to the phone's own Vulkan driver (r9). These
launchers load the driver where the system'slibui.socannot be seen, and r9 could not load
without it. The driver now openslibui.soonly if it can, and otherwise reads gralloc buffers
itself, as r8 did. - Fixed: stale or corrupted render targets on the command stream GPUs (G610 and later). These
GPUs skip writing tiles that have not changed since the last frame. When an application reused a
render target's memory for something else, the driver kept trusting the old contents, so parts
of the next frame could show leftover data. Reusing memory like this is common in emulators and
render graphs. - Fixed: cube render targets losing five faces. Rendering into a cube image while keeping its
previous contents (LOAD_OP_LOAD) wiped faces 1 to 5. All GPUs. - Fixed: layers beyond the eighth of a layered render target were skipped by full-screen
passes recorded in a secondary command buffer that continues a render pass (command stream
GPUs before the G1-Ultra). - The GPU now shows up as "PanVK-" instead of "Mali-", so apps and
launchers show at a glance which driver is running. - More colour formats, matching Arm's driver:
R5G5B5A1_UNORM_PACK16andB5G5R5A1_UNORM_PACK16can be sampled and rendered to
(Eden, RPCS3).- RGB8 integer formats and every RGB16 format can be sampled.
alphaToOneand its dynamic state, which RPCS3 (ARMSX3) asks for.- Lower CPU load while waiting for query results. The driver used to spin a CPU core until
the GPU finished. It now sleeps after a short spin. Emulators such as Eden wait on occlusion
queries every frame.
Known limitations
- No depth bounds test and no 64-bit floats in shaders: Mali has no hardware for either. RPCS3
logs a warning and runs without them. - Direct3D 12 tops out at feature level 11_1: 12_0 needs tiled resources, and kbase cannot remap
GPU memory pages. Feature level 11_1 also needs vertex shader stores, which are off on the G57
to G720, because those GPUs run the vertex shader for vertices a draw does not use. - On Bifrost, Direct3D 12 games that use unbounded (bindless) descriptor ranges do not start,
because Bifrost has no bindless textures. - Pipeline statistics queries do not count indirect draws or fragment shader invocations.
- No mesh shaders: no Bifrost or Valhall GPU has them in hardware.
- On phones with 4 GB of RAM or less, give Minecraft about 600 MB of Java heap.
Install
mali-panvk-27.0.0-devel-r10.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 r9 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.