Mesa 27.0 Adopts Kraid Shader Compiler for Mali Valhall GPUs
Mesa 27.0 transitions to the new Kraid shader compiler by default for Mali Valhall architecture GPUs, delivering significant improvements in instruction count, register spilling, and compilation speed.
Mesa 27.0 defaults to Kraid, a new shader compiler for the open-source Panfrost and PanVK drivers, on Mali GPUs using the Valhall (v9) architecture or newer. Mesa 26.3 is the final release shipping the old compiler. Collabora's Faith Ekstrand detailed the compiler in a write-up on the company site.
Kraid replaces the existing compiler for Valhall and later parts across both OpenGL and Vulkan drivers. Development took under six months from start to default status. Older Mali generations prior to Valhall remain outside this default switch.
You get several concrete improvements. Kraid generates roughly 18 to 20 percent fewer shader instructions across OpenGL and Vulkan shader sets. Register spilling drops by over 80 percent, which cuts back on pushing values to slower memory when shaders run short of registers. Furthermore, compilation runs faster and uses less memory.
Proper 64-bit integer support is now included, addressing a gap in the old compiler where these operations were missing despite their importance for newer API features and dependent applications. If you work on Arm Mali hardware, you will notice these smaller shaders and faster compile times firsthand.
