News: 0001628576

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

RADV Driver Enables Host Image Copy By Default For RDNA2 & Newer

([Radeon] 4 Hours Ago VK_EXT_host_image_copy)


Introduced back in 2023 with [1]Vulkan 1.3.258 was VK_EXT_host_image_copy to copy data between host memory and images on the host processor without needing to stage the data through a CPU-accessible buffer. This direct CPU-to-GPU image data transfer path can reduce memory usage during asset loads and all around more efficiency and performance. Finally now the RADV open-source Radeon driver is enabling support by default.

Last year [2]RADV landed experimental support for https://www.phoronix.com/news/RADV-Experimental-HIC but was disabled by default due to possible performance issues. Finally now though with updated AMD [3]ADDRLIB library, the performance is good enough for enabling by default on RDNA 2 (GFX10.3) and newer GPUs.

Samuel Pitoiset of Valve's Linux graphics team explained in a now-merged [4]Mesa patch :

"Latest addrlib supports SIMD (AVX2) and it's definitely fast enough to be used in production now.

GFX10 is still not enabled by default due to some regressions from the addrlib bump, also still missing AVX for some formats."

The AVX2 optimizations in ADDRLIB pay off big time as noted in the [5]merge request :

"This new addrlib bump contains AVX optimizations for upload (mem->img) and it's way faster, the order of magnitude is like x10, it's roughly 20GiB/s on NAVI48."

RDNA 1 (GFX10) can still force it on via RADV_DEBUG=hic if desired while moving forward RDNA 2 and newer will have this important performance and memory efficiency feature enabled by default.



[1] https://www.phoronix.com/news/Vulkan-1.3.258-Released

[2] https://www.phoronix.com/news/RADV-Experimental-HIC

[3] https://www.phoronix.com/search/ADDRLIB

[4] https://gitlab.freedesktop.org/mesa/mesa/-/commit/87e95c5e50ead830a1c88ad32bb1c76ec9bba156

[5] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40996



If I had a Q-TIP, I could prevent th' collapse of NEGOTIATIONS!!