radv: enable the trap handler and configure the shader exceptions

Graphics / Mesa 3D Graphics Library / Mesa - Samuel Pitoiset [gmail.com] - 24 August 2020 11:08 UTC

When TRAP_PRESENT is not enabled, all traps and exceptions are ignored. Only EXCP_EN.mem_viol is currently supported because the other exceptions have to be tested/validated first.

EXCP_EN.mem_viol is used to detect any sort of invalid memory access like VM fault. When a memory violation is reported, the hw jumps to the trap handler.

8e97a61cfbb radv: enable the trap handler and configure the shader exceptions
src/amd/vulkan/radv_shader.c | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

Upstream: cgit.freedesktop.org


  • Share