summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-03-14 10:34:13 +0100
committerSamuel Pitoiset <[email protected]>2018-03-15 17:20:03 +0100
commit81818662a5e5f252f95f4b4611b0840854d25beb (patch)
tree27c43722e267b68a129c2c5e2f8d190edcc36878 /src/amd/vulkan/radv_shader.h
parentd07edf5fdf70b42324cac961feb10fb41c71b13b (diff)
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 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_shader.h')
-rw-r--r--src/amd/vulkan/radv_shader.h2
1 files changed, 2 insertions, 0 deletions
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;
};