Mesa Eyes Pulling libdrm Into Its Codebase

Written by Michael Larabel in Mesa on 17 January 2024 at 06:29 AM EST. 28 Comments
MESA
Longtime AMD Mesa driver developer Marek Olšák has laid out a proposal to integrate the libdrm code within Mesa rather than being maintained as its own separate project.

The libdrm code is the library for accessing the Direct Rendering Manager (DRM) kernel drivers. Libdrm sits in effect between Mesa and the kernel drivers. There is common code within libdrm as well as hardware/driver-specific code. Libdrm is most notably used by Windows but there's also other users of libdrm too for those needing to interface directly with Linux's DRM.

Marek laid out a draft merge request that would merge libdrm into Mesa. This would simplify development and also make it easier for building Mesa. Mesa's different drivers do maintain varying version requirements around libdrm and if it was all developed in-tree would be easier on the developers and those frequently building Mesa.

glxgears


Marek says he intends for this move to still maintain backwards compatibility of libdrm. This merge request was opened a few days ago with still needing to update the continuous integration (CI) test scripts, new GitLab labels, etc, before potentially landing this change.

Those interested in seeing libdrm embedded into the Mesa codebase can find the draft merge request via the Mesa GitLab.
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