Mesa 24.3 Finishes The Years Long Effort To Phase Out The Old GLSL IR Linker

Written by Michael Larabel in Mesa on 25 September 2024 at 08:59 AM EDT. 3 Comments
MESA
Timothy Arceri with the Valve Linux graphics team has merged the code for Mesa GLSL to convert to NIR at compile-time and in turn dropping the old GLSL IR linker with this being a multi-year effort now wrapped up for Mesa 24.3.

This finishes up work for going straight to the modern NIR intermediate representation at compile-time and does away with the old GLSL IR linker code in favor of a fully-NIR-based linker.

Arceri explained in the merge request merged this morning for Q4's Mesa 24.3 release:
"This is the final MR after years of work by many people to get us to this point. This series moves glsl_to_nir() to compile time and replaces the remaining bits of the GLSL IR linker with a fully nir based linker.

The result here is a cleaner code-base that current mesa devs can better work with, support into the future and better understand. It also sets us up for other possible improvements such as improving the glsl shader cache to finally support storing compiled shaders and not just linked shaders."

Kudos to all those involved in this lengthy effort to help better modernize the Mesa code and further focus around NIR.

Mesa 24.3 merge for dropping old GLSL IR linker


This final merge request touched more than two thousand lines of code. This work and a lot of other graphics driver changes can be found in Mesa 24.3 that should be seeing its stable release around November.
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