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(-)