From 81818662a5e5f252f95f4b4611b0840854d25beb Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 14 Mar 2018 10:34:13 +0100 Subject: radv: record LLVM IR when debugging shaders If AMD_shader_info or RADV_TRACE_FILE is used we might need to keep trace of LLVM IR. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen --- src/amd/vulkan/radv_shader.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/amd/vulkan/radv_shader.h') diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 6550c7da1d6..5c3f0ff6c44 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -99,6 +99,7 @@ struct radv_nir_compiler_options { bool clamp_shadow_reference; bool dump_shader; bool dump_preoptir; + bool record_llvm_ir; enum radeon_family family; enum chip_class chip_class; }; @@ -261,6 +262,7 @@ struct radv_shader_variant { uint32_t spirv_size; struct nir_shader *nir; char *disasm_string; + char *llvm_ir_string; struct list_head slab_list; }; -- cgit v1.2.3