Skip to content

vtn,radv,aco: add support for debugger breakpoints via NonSemantic.DebugBreak

Samuel Pitoiset requested to merge hakzsam/mesa:vtn_radv_debug_break into main

NonSemantic allows to declare extended instructions like DebugBreak (https://htmlpreview.github.io/?https://github.com/KhronosGroup/SPIRV-Registry/blob/main/nonsemantic/NonSemantic.DebugBreak.html). This is used to emit a new instruction that I called nir_abort() which can be used to jump to a trap handler for drivers that have support, like RADV.

This should allow us to instrument shaders and dump all registers from the trap handler shader when a breakpoint is reached.

Edited by Samuel Pitoiset

Merge request reports

Loading