English | 简体中文 | Branches | Architecture | Development & CI | Status | Roadmap
A production-tested Mesa 26.3.0-devel fork delivering a standalone PanVK Vulkan 1.4 (and OpenGL 4.6 / GLES 3.2 via Zink) driver directly over Arm's vendor mali_kbase CSF kernel driver (/dev/mali0, UAPI 1.18–1.30), with zero dependency on kernel DRM/panthor.
Note
This is an independent community fork — not upstream Mesa, and not affiliated with Arm, MediaTek, or Khronos (conformanceVersion = 0.0.0.0). Companion standalone validation & ray tracing benchmark suite: Alhkxsj/panvk-kbase-validation.
┌────────────────────────────────────────────────────────────────────────────┐
│ Vulkan 1.4 Apps · DXVK / VKD3D · Emulators · Zink (OpenGL 4.6 / GLES 3.2) │
└──────────────────────────────────────┬─────────────────────────────────────┘
▼
┌────────────────────────────────────────────────────────────────────────────┐
│ PanVK Frontend & CSF Command Stream (src/panfrost/vulkan/) │
│ • Vulkan 1.4 (195 ext) · 100% GPU Compute Ray Tracing (AS + ray_query) │
│ • Native ASTC 3D (30 fmts) · Native HW VRS · 4-Stream GS/XFB · Multiview │
│ • GPU Compute BC1–BC7 Decode · FAU Push-UBO · Per-Stage Descriptor Dirty │
└───────────────────┬──────────────────────────────────┬─────────────────────┘
▼ ▼
┌──────────────────────────────────────┐ ┌───────────────────────────────────┐
│ Dual Valhall Compilers │ │ Zero-Copy WSI & Display │
│ • Bifrost (C, default) │ │ • X11 DRI3 (raw/std, 6-buf IMM) │
│ • KRAID (Rust, PAN_USE_KRAID=all) │ │ • Wayland DRM-less kopper │
│ Automated Debian 13 arm64 CI │ │ • KCPU sync_file external fences │
└───────────────────┬──────────────────┘ └─────────────────┬─────────────────┘
└──────────────────┬───────────────────┘
▼
┌────────────────────────────────────────────────────────────────────────────┐
│ pan_kmod kbase Backend + MediaTek Dimensity Platform Integration │
│ • /dev/mali0 (kbase CSF UAPI 1.18–1.30) · ACE-Lite IO_COHERENT · SLC grp6 │
│ • GED GPU OPP 0 + DCS 12-core + LPDDR5X-9600 lazy DVFS (dual-flock safe) │
└────────────────────────────────────────────────────────────────────────────┘
| Tier | Maintainer | Branch(es) | GPU | SoC / Device | Kernel Interface | Verification Scope |
|---|---|---|---|---|---|---|
| Primary Target | @Alhkxsj | main, termux |
Immortalis-G925 MC12 (Mali-G925-Immortalis MC12, PAN_PROD_ID(13,8,0)) |
MediaTek Dimensity 9400+ (MT6991, OnePlus Ace 5 Supreme / PLC110) |
mali_kbase r49p1 CSF (UAPI 1.30) |
Full CI + on-device acceptance (195 ext, KRAID, Batch 1–3, GPU RT, DVFS, VVL) |
| Supported (Co-maintained) | @fengyun-shaohua | dimensity-9300 (core patches merged into main) |
Immortalis-G720 MC12 (Mali-G720-Immortalis MC12, PAN_PROD_ID(12,8,0)) |
MediaTek Dimensity 9300+ (MT6989) |
mali_kbase r44 CSF (UAPI 1.21 / >= 1.18) |
Runtime-compatible in main (G720 ID, r44 UAPI, SLC, GED/DDR DVFS); Batch 1–3 / RT pending G720 validation |
Different branches target distinct libc runtimes and SoCs. Full decision tree & merge policy: docs/panvk-kbase/BRANCHES.md.
| Branch / Tag | Userspace / libc | Primary Target (and Compatibility) | Purpose |
|---|---|---|---|
main (recommended) |
Linux arm64 glibc (Debian 13 chroot / Linux containers) | Primary: Immortalis-G925 MC12 (r49p1); runtime-compatible with Immortalis-G720 MC12 (r44) | Primary release trunk: 195 extensions, KRAID CI, Batch 1–3 (incl. 100% GPU RT), BC1–BC7, MTK GED/DDR DVFS |
dimensity-9300 |
Linux arm64 glibc | Immortalis-G720 MC12 (Dimensity 9300+, r44) | Dimensity 9300+ bring-up & tuning branch (core DVFS/wait/WSI/compiler patches consolidated into main) |
termux (termux-26.3.0-devel · g925-adpkg-26.3.0-devel) |
Android Termux native (Bionic) | Primary: Immortalis-G925 MC12 (Valhall CSF) | Native Termux/Bionic & adpkg snapshot based on debian-13-26.3.0-devel (20261203-5) |
Measured on Immortalis-G925 MC12 (Dimensity 9400+, Debian 13 arm64 chroot, -O3 + KRAID):
| Category | Metric / Suite | Verified Result |
|---|---|---|
| API Surface | Vulkan / OpenGL / GLES | Vulkan 1.4 · 195 Device Extensions · OpenGL 4.6 · GLES 3.2 |
| 100% GPU Ray Tracing | Khronos RT CTS (PAN_USE_KRAID=all) |
730 / 730 PASS (0 Fail, 16s; AS + ray_query + position_fetch + Descriptor Buffer) |
| 100% GPU Ray Tracing | rt_scene_probe (1280×720, 2.22M rays/f, 2-bounce + shadow + AABB) |
220.24 FPS / 488.70 MRays/s (KRAID) · 200.05 FPS (Bifrost) · 0-bit diff · VVL 0 errors |
| HW Native Features | ASTC 3D · HW VRS · 4-Stream GS · Multiview GS/TES · BC1–BC7 | 0 Fail across all Khronos CTS suites (-O0 / -O3 / KRAID=all) |
| Vulkan Graphics | vkmark X11 :1 (6-scene / full 11-scene, KRAID) |
Median 22,643.5 (peak 22,829) / Median 20,787.0 (peak 21,099) |
| OpenGL / GLES (Zink) | glmark2 / glmark2-es2 X11 :1 (5-scene, zero env) |
Median 13,864.0 (+40.4%, peak 13,942) / Median 14,029.0 (peak 14,059) |
| Vulkan Compute | Geekbench 6 Vulkan Compute (cold runs) | 15,783 (Bifrost) / 15,756 (KRAID-cs) / 15,699 (MTK_BOOST=0) |
| DVFS & Stability | Live clocks + VVL + 600s X11 DRI3 soak | DDR 9,594 MHz · GPU 1,430 MHz · DCS 12c · fd_delta=0 · 0 dropped frames |
# 1. Check dependencies & build release (-O3) / debug (-O0) + 87 host unit tests
./build.sh --check-deps
./build.sh --profile both --test
# 2. Package & install locally (with APT hold to prevent upstream mesa overwrite)
./build.sh --deb
sudo dpkg -i build/packages/mesa-panvk-kbase_*_arm64.deb
sudo apt-mark hold mesa-panvk-kbase
# 3. Run Vulkan 1.4, KRAID Rust compiler, or Zink OpenGL 4.6
vulkaninfo --summary
PAN_USE_KRAID=all vkmark --winsys xcb -p mailbox -s 800x600
MESA_LOADER_DRIVER_OVERRIDE=zink GALLIUM_DRIVER=zink glmark2 -s 800x600
# 4. Run standalone on-device validation suite (RT + DVFS + VVL + CTS + DRI3)
git clone https://github.com/Alhkxsj/panvk-kbase-validation.git
cd panvk-kbase-validation && make && ./scripts/run-acceptance.sh --fast /tmp/accept-outCloud arm64 KRAID
-O3&-O0builds (runningpan-kmod-host,bifrost_tests,valhall_tests,kraid_test) are built via GitHub Actions:.github/workflows/build-panvk-kraid.yml.
| Document | Description |
|---|---|
| docs/panvk-kbase/README.md · 简体中文 | Bilingual overview, capabilities, and quick start |
| docs/panvk-kbase/BRANCHES.md | Complete branch & tag topology (main, dimensity-9300, termux), decision tree, sync policy |
| docs/panvk-kbase/ARCHITECTURE.md | Subsystem internals (CSF, KRAID, GPU RT, VRS, ASTC 3D, DVFS), env var reference, HW/kernel boundaries |
| docs/panvk-kbase/DEVELOPMENT.md | Engineering rules (E1–E5), local/CI builds, validation, packaging, troubleshooting |
| docs/panvk-kbase/STATUS.md | Release identity, SHA-256 replacement chain, full CTS & benchmark history |
| docs/panvk-kbase/ROADMAP.md | Ordered milestone tracker & upstream Mesa delta inventory |
| docs/panvk-kbase/LICENSING.md | MIT licensing, SPDX headers, upstream Mesa & third-party notices |
| Alhkxsj/panvk-kbase-validation | Companion standalone validation, 1280×720 GPU RT benchmark, DVFS & VVL harness |
New code introduced by this fork is licensed under the MIT License (SPDX-License-Identifier: MIT). Files inherited from upstream Mesa retain their original copyright and license notices. See docs/panvk-kbase/LICENSING.md and licenses/MIT.