# Mesa 27.0 defaults to Kraid compiler for Arm Mali v9/Valhall GPUs

> **Key takeaway:** The Kraid shader compiler reduces OpenGL instruction counts by nearly 20% and improves compilation speed for Panfrost and PanVK drivers on newer Arm Mali hardware.

**Published:** 2026-10-26T14:28:59+00:00 
**Source:** Phoronix Benchmarks &amp; Drivers 
**Category:** kernel-os 
**Canonical URL:** https://fosswire.org/news/mesa-270-defaults-to-kraid-compiler-for-arm-mali-v9valhall-g.html 

## Summary
Mesa 27.0, scheduled for release in Q1 2027, will switch to the Kraid compiler by default for the Panfrost Gallium3D and PanVK Vulkan drivers targeting Arm Mali v9 and Valhall GPUs. Kraid was originally merged into Mesa 26.2 in June 2026 after months of development by Collabora, and the Mesa 27.0-devel branch has now completed the transition to make it the default shader compiler for this hardware generation.

The change affects users of newer Arm Mali GPUs who rely on open-source Mesa drivers rather than proprietary Arm binaries. Kraid generates approximately 20% fewer instructions for OpenGL shaders compared to the previous compiler, and benchmarked games and applications show modest frame-rate improvements of a few percent across both OpenGL and Vulkan workloads. The more significant user-visible improvement is faster shader compilation time and more accurate modeling of register access patterns on Valhall-class Mali hardware.

## Kraid compiler changes in Mesa 27.0
- **Default compiler transition:** Mesa 27.0-devel now enables Kraid by default for Panfrost and PanVK, replacing the prior compiler for Mali v9/Valhall GPUs and newer; older GPUs continue using their existing compiler paths.
- **Instruction reduction:** Kraid reduces generated OpenGL shader instructions by nearly 20%, which decreases memory bandwidth for shader storage and can reduce cache pressure during draw calls.
- **Register modeling:** The compiler more accurately represents how register accesses function on Valhall-generation Mali GPUs, which improves scheduling decisions and reduces unnecessary register moves or spills.
- **Compilation throughput:** Shader compilation speed improves measurably, reducing stutter during shader cache misses and improving application startup times for games and desktop compositors.
- **Performance uplift:** Benchmarked OpenGL and Vulkan workloads show a few percent better frame rates, though the gains vary by application and are secondary to the compilation efficiency improvements.

## Why it matters
For Linux distributions shipping on Arm64 devices with Mali v9/Valhall GPUs—including Chromebooks, single-board computers, and emerging Linux phones and tablets—this Mesa change removes a key performance bottleneck without requiring proprietary driver stacks. The faster shader compilation particularly benefits Steam Proton and native Linux gaming on these devices, where shader cache warm-up has historically caused noticeable frame-time spikes. Collabora's continued investment in open-source Mali graphics tooling also strengthens the vendor-neutral driver ecosystem for Arm SoCs, reducing dependence on Arm's closed-source user-space binaries.