summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_shader.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-09-01 13:45:33 +0200
committerSamuel Pitoiset <[email protected]>2017-09-08 17:18:17 +0200
commit885d75760b9157f1d84105c979503ec8588470c6 (patch)
treea1a1c95f09ce502f887449aca19b5be50f3f5837 /src/amd/vulkan/radv_shader.h
parent92db23f3f912f207273a90d0850f436e3e95b1d8 (diff)
radv: keep track of the disasm string in debug mode only
This will allow to dump the active shaders when a hang is detected. Only the ASM will be dumped for now. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h
index 3f8dd92392d..9de3c27550d 100644
--- a/src/amd/vulkan/radv_shader.h
+++ b/src/amd/vulkan/radv_shader.h
@@ -49,6 +49,7 @@ struct radv_shader_variant {
struct ac_shader_variant_info info;
unsigned rsrc1;
unsigned rsrc2;
+ char *disasm_string; /* debug only */
struct list_head slab_list;
};