mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
radv: include LLVM IR in the VK_AMD_shader_info "disassembly"
Helpful for debugging compiler backend problems: this allows us to easily retrieve the LLVM IR from RenderDoc. Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
5213be9fab
commit
8c97abc066
1 changed files with 1 additions and 0 deletions
|
|
@ -860,6 +860,7 @@ radv_GetShaderInfoAMD(VkDevice _device,
|
|||
buf = _mesa_string_buffer_create(NULL, 1024);
|
||||
|
||||
_mesa_string_buffer_printf(buf, "%s:\n", radv_get_shader_name(variant, stage));
|
||||
_mesa_string_buffer_printf(buf, "%s\n\n", variant->llvm_ir_string);
|
||||
_mesa_string_buffer_printf(buf, "%s\n\n", variant->disasm_string);
|
||||
generate_shader_stats(device, variant, stage, buf);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue