RadeonSI Starts 2026 With NIR Compilation Refactoring For Better Performance, Lower GLSL Compile Times
([Radeon] 2 Hours Ago
Mesa 26.0 Improvement)
- Reference: 0001603385
- News link: https://www.phoronix.com/news/RadeonSI-NIR-Comp-Refactoring
- Source link:
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
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