Merged today for Mesa 25.1 is introducing a new previously AMD-internal library to the open-source RadeonSI Gallium3D driver dubbed GMLIB. This GMLIB code is being used by RadeonSI in conjunction with Radeon GPUs having the Video Processing Engine (VPE) hardware to deal with HDR video on Linux.
GMLIB is now being used by the RadeonSI driver to generate 3DLUT to carry out tonemapping. This is for AMD GPUs with the VPE hardware block as in effect a copy engine and can handle HDR conversions. VPE is initially found with Ryzen AI 300 series SoCs. Last year during XDC was this presentation by AMD engineer Harry Wentland on VPE.
There he noted that the VPE support for constructing a tone-mapping 3DLUT isn’t open-sourced yet… But that appears to be what is now addressed today with GMLIB introduced to Mesa.
Along with adding GMLIB for RadeonSI, the merged code today adds VPE support for HDR input and the VPE handling for tonemapping. See this merge for those interested in more details. It’s great seeing the Linux desktop finally catching up on the HDR front with a lot of new code being merged the past several weeks across many projects.