diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-22 16:56:40 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-10-04 19:37:08 +0200 |
commit | 844ae722c4416420f961ce8a89b5e5278865376c (patch) | |
tree | 81109e6aa2e0b7cfa4298f280048ae20f8bc9084 /src/amd/vulkan/radv_shader.h | |
parent | a2a350a3be1a4f3dec8cc3264a19eb877d606628 (diff) |
radv: dump SPIRV when a GPU hang is detected
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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 7ad38bf5792..1ef13968f97 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -51,6 +51,8 @@ struct radv_shader_variant { unsigned rsrc2; /* debug only */ + uint32_t *spirv; + uint32_t spirv_size; struct nir_shader *nir; char *disasm_string; |