VOOZH about

URL: https://www.phoronix.com/news/RADV-VK_KHR_shader_fma

⇱ RADV Driver Lands Support For VK_KHR_shader_fma - Phoronix


👁 Phoronix

RADV Driver Lands Support For VK_KHR_shader_fma

Written by Michael Larabel in Radeon on 25 May 2026 at 10:12 AM EDT. 5 Comments
Merged today for what will become Mesa 26.2 next quarter is the Radeon Vulkan driver "RADV" now supporting the VK_KHR_shader_fma extension.

VK_KHR_shader_fma was introduced to the Vulkan spec last year for applications wanting correctly-rounded fused-multiply add (FMA) operations. This is particularly useful for machine learning and scientific computing applications leveraging Vulkan for GPU acceleration and wanting to ensure floating-point accuracy.

The Vulkan extension spec text for VK_KHR_shader_fma explains:
"This extension allows applications to use the SPV_KHR_fma extension to obtain correctly-rounded results for fused-multiply add (fma) operations.

Fused-multiply add is a building block of many high-precision numerical functions. It provides better accuracy than separate operations, because of the removal of the intermediate rounding step, and often costs less than the pair of separate operations.

Vulkan currently exposes an fma primitive that can give the reduced cost, but it is not guaranteed to be a fused operation, so the accuracy cannot be relied on. For applications which require the high accuracy, therefore, the operation must be emulated or the algorithm changed so as not to require fma. This is often vastly more costly, even though fma is supported in much of the underlying hardware."

Thanks to Georg Lehmann with this merge, the Mesa RADV Vulkan driver now supports VK_KHR_shader_fma.

Update: Following that, today, the NVK driver has also enabled VK_KHR_shader_fma. Karol Herbst notes that the FMA extension with NVK is allowing better OpenCL performance.

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.