VOOZH about

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

⇱ RADV Driver Lands VK_EXT_shader_float8 Support - Phoronix


👁 Phoronix

RADV Driver Lands VK_EXT_shader_float8 Support

Written by Michael Larabel in Radeon on 23 June 2025 at 06:29 AM EDT. 11 Comments
The Mesa Radeon Vulkan driver "RADV" is now the first Mesa in-tree driver supporting 8-bit floating point use within shaders via the new VK_EXT_shader_float8 extension.

VK_EXT_shader_float8 was introduced earlier this month with the Vulkan 1.4.317 spec update. VK_EXT_shader_float8 enables support for 8-bit floating point operations within shaders in order to support more AI / machine learning workloads with the Vulkan API.

👁 RADV float8 merge request


With the open-source RADV driver, the 8-bit floating point support works with AMD RDNA4 / GFX12 GPUs and future hardware. This merge request is what wired up the VK_EXT_shader_float8 support within the RADV driver as well as associated SPIR-V and NIR plumbing.
"This adds support for E4M3FN (4bit exponent, 3bit mantissa, no infinity) and E5M2 (5bit exponent, 2bit mantissa) float formats in vtn, nir and aco.

Only conversions and cmat muladd are supported. Like for bfloat16, all conversions go through fp32."

This 8-bit FP support for the RADV driver will be part of next quarter's Mesa 25.2 release for helping out Vulkan with AI/ML software.

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.