banner

News

Nov 03, 2024

Valve Linux Driver Team Fixes RADV Driver Performance With FSR 2 Through MESA 24.3 Release, Up To 228% Uplift

RADV driver fix delivers an incredible performance boost on RDNA 2 hardware using FSR 2, reducing the performance gap that existed for two years.

The Mesa 24.3 has finally fixed the major issue with the RADV(Radeon Vulkan) driver, which led to inferior performance compared to AMD's proprietary AMDVLK/AMDGPU-PRO Vulkan driver. This performance gap existed for nearly 2 years when the FSR 2 was turned on in games. It has been successfully fixed by Valve's Linux driver team by just tweaking a few lines of code.

The credit goes to the engineer, Samuel Pitoiset, who, as reported by Phoronix, identified the issue and fixed the problem by tweaking less than a dozen lines of code. For context, the RADV driver is an open-source Vulkan driver for AMD GPUs for the Linux OS. Being open-source and open to the community has led to its increased popularity among users, but the problem used to occur when FSR 2(FidelityFX Super Resolution 2) was turned on.

The performance was poor compared to the AMDGPU-Pro driver, which is optimized by AMD itself. Nearly 2 years passed, but there was no fix until Samuel identified the root cause of the issue. This was specifically due to how the RADV driver handled the culling of primitives with specific characteristics in FSR 2. In simple words, culling is how unnecessary primitives like triangles and lines are discarded before rendering to improve performance by saving power.

It looks like the fixed-func hardware is very slow to cull primitives with zero pos.w but shader based culling helps a lot.

This fixes a massive performance gap with the FSR2 demo compared to AMDGPU-PRO, +228% on RDNA2.

-Samuel Pitoiset (Credit: Phoronix)

With the AMDGPU-Pro driver, this is handled easily as the driver culls primitives with zero in the "W" position. RADV, on the other hand, wouldn't do the same, which resulted in additional and unnecessary calculations that slowed down the performance of FSR 2 applications.

As indicated by Samuel, making adjustments to the AMD NIR code enforces culling when the W position is zero. This helped the RADV driver achieve an incredible 228% performance boost on RDNA 2 GPUs when the FSR 2 is turned on. This improvement will be available to the users through the official release and is a part of Mesa 24.3-devel.

News Source: Phoronix

Related StorySamuel Pitoiset (Credit: Phoronix)
SHARE