Dev

Mesa Rusticl Now Enables Mali Panfrost by Default

With patches by Arm engineers, Mali GPU's open-source driver Panfrost now supports Rusticl by default, enabling OpenCL without environment variables.

6 min read Reviewed & edited by the SINGULISM Editorial Team

Mesa Rusticl Now Enables Mali Panfrost by Default
Photo by Andrej Lišakov on Unsplash

Overview of the Changes

The Mesa graphics stack has integrated a change where the open-source driver “Panfrost Gallium3D” for Arm Mali GPUs is now enabled by default with “Rusticl,” a Rust-based OpenCL implementation. This update was reported by Michael Larabel of Phoronix.

Previously, using Rusticl with the Panfrost driver required explicitly setting the environment variable “RUSTICL_ENABLE=panfrost.” This override was introduced as a safeguard for drivers where Rusticl’s support had not yet been fully tested. With this latest change, starting from Mesa 26.2, users will no longer need to configure environment variables, allowing OpenCL to work immediately after installation.

Relationship Between Rusticl and Panfrost

Rusticl is a Rust-based OpenCL implementation developed within the Mesa project. It is designed to replace the older OpenCL implementation, Clover, with a more modern architecture and improved maintainability. Rusticl communicates with various GPU drivers via the Gallium3D interface and provides support for OpenCL 3.0.

Panfrost is an open-source Gallium3D driver for Arm Mali GPUs (Midgard generation and later). Unlike Arm’s official binary Mali Midgard/Bifrost drivers, Panfrost has been developed by the open-source community. In recent years, Arm engineers have taken a more active role in its development. Ahmed Hesham, the Arm engineer who submitted the patch for this change, is a notable contributor.

Although Rusticl has been progressively supported by multiple drivers, only a few drivers have had it enabled by default. The addition of Panfrost to this list signifies a milestone in Rusticl’s development. According to Phoronix, while Panfrost and Rusticl have been compatible for some time, enabling it by default was delayed to ensure quality assurance.

Previous Limitations and the Current Solution

In the Rusticl framework, the decision to enable default functionality for specific drivers is based on thorough testing of OpenCL performance and stability.

While Panfrost was already technically compatible with Rusticl, users were required to set the “RUSTICL_ENABLE=panfrost” environment variable manually. This extra configuration step was a barrier to broader adoption of OpenCL on Arm platforms.

The patch submitted by Arm engineer Ahmed Hesham removes the need for this environment variable. Specifically, it modifies Mesa’s build system to include the Panfrost driver in Rusticl’s default enablement list. The patch has been merged into the Mesa 26.2 development branch.

Release Schedule for Mesa 26.2

Users will receive this update with the stable release of Mesa 26.2, expected in August 2026, as Mesa follows a roughly three-month release cycle.

In addition to Panfrost’s default enablement with Rusticl, Mesa 26.2 is anticipated to include improvements across various drivers and introduce new features. As an open-source graphics stack, Mesa is widely used across environments ranging from Linux desktops to embedded systems.

Impact on the Arm Mali Ecosystem

Arm Mali GPUs are integrated into numerous devices, including smartphones, tablets, and single-board computers that utilize ARM architecture. The Raspberry Pi series is one example of devices featuring Mali GPUs, making the open-source Panfrost driver especially valuable.

OpenCL is a standard API for general-purpose GPU computing, useful for applications like image processing, machine learning inference, and physical simulations. Historically, OpenCL support on ARM platforms has heavily relied on vendor-supplied binary drivers. With this change, ARM devices will now have a fully open-source pathway to utilize OpenCL.

However, not all Mali GPUs will benefit from this update. Panfrost’s support is limited to Mali GPUs from the Midgard generation (Mali-T600/T700/T800 series) onwards. Older Mali GPUs and some of the latest Mali GPUs still depend exclusively on official binary drivers.

Current Status and Future of Rusticl

Rusticl has emerged as the primary OpenCL implementation within the Mesa project, poised to replace Clover. Its use of the Rust programming language aims to improve memory safety, performance, and developer productivity while reducing bugs.

As of now, only a few drivers have Rusticl enabled by default. The gradual enablement reflects the development and testing status of individual drivers. The inclusion of Panfrost in the default list demonstrates growing confidence in Rusticl’s reliability. Phoronix’s Michael Larabel praised the change, calling it a “better out-of-the-box experience for users who want to utilize modern, open-source OpenCL on Arm Mali graphics hardware.”

Additionally, the Mesa project continues to strengthen support for OpenCL alongside OpenGL and Vulkan. Recent developments, such as Bun’s complete transition from Zig to Rust, further highlight the growing adoption of Rust in system programming.

Future Prospects for OpenCL on ARM Platforms

As ARM architecture gains traction in the server market, demand for GPU computing on ARM platforms is increasing. Examples include NVIDIA’s Grace Hopper superchip and AWS’s Graviton paired with GPUs.

While integrated Mali GPUs may lack the computational power of discrete GPUs, their OpenCL support is crucial for applications like edge computing, embedded systems, and energy-efficient inference tasks.

With tools like Desktop Commander MCP delegating terminal operations to AI agents, the demand for local processing is growing. The integration of GPU computing environments on ARM devices is becoming increasingly practical.

Challenges Ahead

While Rusticl’s default enablement simplifies setup, the compatibility and performance of OpenCL applications will depend on driver implementation quality. This change merely establishes the default functionality and does not guarantee flawless execution for all OpenCL programs.

Additionally, users relying on Mesa versions earlier than 26.2 will still need to set the environment variable manually to enable Rusticl with Panfrost. They can either use the latest development branch or wait for the Mesa 26.2 release.

Some Linux distributions may disable Rusticl in their Mesa packages due to packaging policies. In such cases, users will need to obtain Mesa packages that explicitly enable Rusticl.

Editorial Opinion

This update marks a significant milestone in Rusticl’s maturity within the Mesa project. The decision to enable Rusticl by default underscores the confidence built through rigorous community-driven quality assessments. The active involvement of Arm engineers, demonstrated by Ahmed Hesham’s patch submission, further highlights Arm’s commitment to open-source drivers.

In the short term, the release of Mesa 26.2 will simplify initial setup for OpenCL users on Mali GPU-equipped devices, such as Raspberry Pi systems and ARM-based Chromebooks. This improvement may lower barriers for exploring GPU computing on ARM platforms, particularly in educational and prototyping settings. It is expected that thorough testing and debugging will be completed ahead of the August 2026 release.

In the long term, the broader enablement of Rusticl could drive growth in the OpenCL ecosystem on ARM platforms.

References

Frequently Asked Questions

What is Rusticl?
Rusticl is an OpenCL implementation developed within the Mesa project, written in Rust. It is designed to replace the older Clover implementation, aiming for improved memory safety and performance while reducing bugs. It interacts with various GPU drivers through the Gallium3D interface.
Why is this change significant?
Previously, using the Panfrost driver with Rusticl required setting an environment variable. This change removes that requirement, making OpenCL easier to use on ARM Mali GPUs and lowering barriers for GPU computing on ARM platforms.
Which devices can benefit from this update?
Devices with ARM Mali GPUs supported by the Panfrost driver (Midgard generation and later) are eligible. Examples include certain Raspberry Pi models, ARM-based Chromebooks, and Linux tablets. Some newer Mali GPUs may still require official binary drivers.
Source: Phoronix

Comments

← Back to Home