MESA’s Open-Source RADV Driver Now Adds Forced Shader Re-Compilation on Steam Deck

Nov 15, 2023 at 07:05am EST
MESA's Open-Source RADV Driver Now Adds Forced Shader Re-Compilation on Steam Deck 1

The MESA team working on the open-source RADV "Radeon Vulkan" driver has added a new "knob" feature to cater to shader compilation errors on Steam Deck,

MESA's RADV "Radeon Vulkan" Drivers Continue To Improve As Latest Patch Tries To Fix Shader Compilation on Steam Deck

In recent times, the open-source Mesa RADV Vulkan drivers have witnessed a significant increase in developments, especially when it comes to improving performance across the board, along with several optimizations and fixes to provide optimal experience to users. They are shaping up to be a great alternative to AMD's official Vulkan drivers, and now the MESA developers have gone one step ahead in the bug-fixing department on the Steam Deck handheld.

Related Story Linux Gamers Finally Get NVIDIA Reflex 2 On AMD And Intel GPUs As Open-Source Vulkan Layer Closes The Latency Gap With Windows

Phoronix reports that there are some new "DRIRC options" added to the latest version of the drivers, which basically aim at forcing the re-compilation when a shader compiler fix needs to be back-ported. This mainly targets Valve's Steam Deck, which relies on pre-compiled shaders to prevent high loading times and inefficient performance. Here is how Samuel Pitoiset of Valve's Linux graphics driver explains the merged code:

On Steam Deck, shaders are pre-compiled for better performance (less stuttering, less CPU usage, etc). But when a compiler fix needs to be backported, there is currently no way to handle this properly.

This introduces 3 drirc options radv_override_{graphics,compute,ray_tracing}_shader_version in order to force the driver to re-compile pipelines when needed.

By default, the shader version is 0 for all pipelines. When one drirc is set for a specific game, RADV will re-compile all pipelines only once with the compiler fix included (because the pipeline key would be different).

While the change may seem small, it will ultimately help in fixing shader compilation errors on Linux desktops as well as the Steam Deck. With the recent updates being made, it will be compelling to see how the current state of Mesa RADV Vulkan drivers compares with AMD's official "AMDVLK" ones.

News Source: Phoronix

About the author: Muhammad Zuhair is a hardware and technology reporter for Wccftech, specializing in the semiconductor industry and the complex interplay between technology, manufacturing, and geopolitics. His coverage focuses on the corporate strategies and technological roadmaps of industry giants like TSMC, NVIDIA, Samsung, and Intel. Zuhair's expertise lies in deconstructing complex topics such as fabrication nodes (e.g., 2nm process), the economic impact of policies like the CHIPS Act, and the strategic development of AI infrastructure from NVIDIA, AMD and Intel.

Follow Wccftech on Google to get more of our news coverage in your feeds.

Deal of the Day