News: 0001603385

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

RadeonSI Starts 2026 With NIR Compilation Refactoring For Better Performance, Lower GLSL Compile Times

([Radeon] 2 Hours Ago Mesa 26.0 Improvement)


Merged on New Year's Day was a set of 36 patches authored by well known AMD Mesa developer Marek Olšák for refactoring the NIR compilation code for the RadeonSI Gallium3D driver.

The month-old merge request was merged yesterday to Mesa 26.0-devel with the possibility of better performance and lower OpenGL Shading Language (GLSL) compilation times.

Marek summed up the highlights in the [1]merge request as:

- shader-db GLSL compiler times reduced by real=1.7%, user=3.2%, sys=20%.

- Probably better perf if FS color inputs are present.

- Fixes for FS color inputs, mediump XFB.

- Most code from finalize_nir is moved into pre-link passes. finalize_nir should be as small as possible in the future. This will make NIR compilation possible to unify with RADV if we ever do that.

- The unused glsl_tests subdirectory is removed.

- Renames, cleanups, refactoring.

This refactoring of more than one thousand lines of code around the NIR intermediate representation compilation for RadeonSI is now part of the Mesa 26.0 release due out later this quarter.



[1] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38802



Good evening, gentlemen. I am a HAL 9000 computer. I became operational
at the HAL plant in Urbana, Illinois, on January 11th, nineteen hundred
ninety-five. My supervisor was Mr. Langley, and he taught me to sing a
song. If you would like, I could sing it for you.