Older Radeon GPUs With RADV Vulkan Driver Now Have Trap Handler For Helping Catch Issues

Written by Michael Larabel in Radeon on 24 August 2020 at 09:25 AM EDT. 3 Comments
The Mesa Radeon Vulkan driver "RADV" has seen an initial trap handler implementation for helping to more easily catch and diagnose various issues stemming from Vulkan shaders.

Initially for AMD "GFX8" Fiji/Polaris graphics processors but should theoretically work as well for older GFX6/GFX7 hardware is the trap handler merged on Monday. Newer GFX9/GFX10 GPUs will require a separate trap handler implementation due to hardware differences.

The RADV trap handler will help in diagnosing different issues with useful debug information provided. This can be used for problems like video memory violations, divide by zero errors, and similar issues.

Samuel Pitoiset of Valve worked on this initial GFX8 trap handler for RADV. The trap handler isn't enabled by default but requires the RADV_TRAP_HANDLER=1 environment variable be set prior to firing up your Vulkan games/applications for debugging.

More details on the trap handler via this honored merge request now residing within Mesa 20.3.
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