Radeon Memory Visualizer Hooks Up With Qualcomm Adreno Vulkan Driver

Written by Michael Larabel in Mesa on 10 March 2024 at 07:20 AM EDT. 4 Comments
MESA
Thanks to the nature of open-source and AMD making their Radeon Memory Visualizer "RMV" open-source under the GPUOpen umbrella, outside of AMD graphics drivers it's found usage elsewhere. Back in January I wrote how Intel's open-source Vulkan driver was adapted for being able to interface with the Radeon Memory Visualizer. Now this week the Qualcomm Adreno "TURNIP" Vulkan driver has also been wired up for enabling RMV integration.

Thanks to the work of Igalia engineers, the Qualcomm Adreno TURNIP "TU" Vulkan driver within Mesa can now leverage the Radeon Memory Visualizer when enabling the memory tracing via the "MESA_VK_TRACE" environment variable. Igalia's Zan Dobersek explained:
"Add RMV support for Turnip. The internal RMV layer is added and integrated into the VkDevice entrypoint dispatch tables. As elsewhere, memory tracing is put into action when enabled through the MESA_VK_TRACE environment variable.

Similar to other implementations of RMV support in Mesa, tracing points are added across Turnip to report on different types of RMV events, calling into tu_rmv logging functions to emit the relevant RMV token data.

TU_BO_ALLOC_INTERNAL_RESOURCE allocation flag is added. When used, in RMV output such an allocation will be associated with an internal resource of the VK_RMV_RESOURCE_TYPE_MISC_INTERNAL type."

Radeon Memory Visualizer support for this Adreno Vulkan driver was merged this week for Mesa 24.1.

Radeon Memory Visualizer


The Radeon Memory Visualizer was released by AMD with the intention for developers to better understand resource utilization, address over-subscription, and better optimize resource handling for Vulkan and Direct3D games/apps. While it's worked great for the AMD Radeon drivers, thanks to being open-source other drivers are also finding it great for these purposes too.
Related News
About The Author
Michael Larabel

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.

Popular News This Week