Nouveau/NVK Driver Lands NIL Library Rewrite In Rust For Mesa 24.1

Written by Michael Larabel in Nouveau on 9 April 2024 at 08:30 AM EDT. 10 Comments
NOUVEAU
In addition to working on NOVA as a Rust-based, GSP-focused NVIDIA open-source kernel graphics driver being developed as the eventual successor to the existing Nouveau DRM kernel driver, over in user-space Mesa developers have begun landing a portion of their Nouveau/NVK driver library code rewritten in Rust.

Daniel Almeida began with rewriting Nouveau's NIL library in the Rust programming language. This initial Rust code for the Nouveau and NVK Vulkan user-space driver code has now been merged for Mesa 24.1.

This NIL rewrite in Rust is their first step toward coming up with a binding between C and Rust within Mesa. This isn't the first Rust code in Mesa in general though with Rusticl working out notably well for the modern Rust-based OpenCL driver. Furthermore, the NVK Vulkan driver a few months back merged NAK as their Rust-written compiler for this open-source NVIDIA Vulkan driver.

This initial rewrite in Rust for the NIL portion of the Nouveau code is made up of 17 commits and reworking more than two thousand lines of code.

Nouveau NIL Rust merged


The merge request had been open since January while overnight finally reached a stage for merging into Mesa 24.1. It will be interesting to see what more Rust code comes to Mesa in the near-term.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week