radeon_gpu_analyzer icon indicating copy to clipboard operation
radeon_gpu_analyzer copied to clipboard

provide source mapping for ISA output

Open Trass3r opened this issue 11 months ago • 1 comments

See

  • https://github.com/AlexSabourinDev/cranberry_blog/blob/master/ShaderDisassemblySourceInformation.md
  • https://github.com/compiler-explorer/compiler-explorer/issues/7297

In the SPIR-V mode there is a workaround by calling the low-level tools manually, passing -trim-debug-info=false to amdllpc and using llvm-objdump instead of amdgpu-dis. In DX12 mode there doesn't seem to be any workaround.

Trass3r avatar Jan 24 '25 10:01 Trass3r

Hi @Trass3r,

The limitation comes from AMD's shader compiler for DX12 which does not support debug info yet.

Once it does, RGA will be updated to leverage that capability in order to provide line correlation for DX12 shaders.

For Vulkan, there is a plan to add source to ISA line correlation support in a future release.

Thanks for reporting this request.

AmitBM avatar Jan 24 '25 14:01 AmitBM