Skip to content

nir: propagate source location information

Constantine Shablia requested to merge nanokatze/mesa:nir_debug_info into main

I hope one day I will be able to debug my shaders, so add support for future shader addr2line. Some drivers can get pc of an offending shader when segfault or hang happens, or pcs of all shaders that were in-flight at that moment. In addition to dumping assembly of those shaders, this will immediately let the driver do addr2line and thus get source location.

My expectation is that addr2line tables will be small so drivers could always keep those around for all shaders and print a fancy message to debug_utils callback or whatever when segfault/hang/??? happen.

Fixes #7394

Edited by Constantine Shablia

Merge request reports