RADV Vulkan Driver Adds Option To Force Smart Access Memory Behavior

Written by Michael Larabel in Radeon on 2 March 2021 at 06:00 AM EST. 26 Comments
RADEON
The latest "Smart Access Memory" work by the open-source AMD Radeon graphics driver stack is an option for the RADV Vulkan driver to force the "SAM" behavior even if the system is not advertising all the video RAM as visible or even if using APU graphics.

With the RADV Vulkan driver optimizations around Smart Memory Access / Resizable BAR, it has been contingent on all of the vRAM being visible, having discrete/dedicated video memory, and not using the "nosam" override to disable the behavior. But new to Mesa 21.1 is a "sam" option to override into forcing the driver to enable its Smart Access Memory behavior even if the system is not advertising the support or even if not having dedicated video memory.

RADV co-founder Bas Nieuwenhuizen added the option on the basis of "So that people without large BAR can try this out."

With Mesa 21.1, which should be released in late May or early June, can force enable this driver SAM behavior with the RADV_PERFTEST=sam environment variable prior to launching Vulkan games/applications. If all goes well, the optimizations will be flipped on to allow moving more driver internal objects to video memory.
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