diff options
author | Samuel Pitoiset <[email protected]> | 2017-09-05 15:34:07 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-09-14 10:37:57 +0200 |
commit | 80b8d9f7e7b41cb07a4d4727035ed7ec4ca468cc (patch) | |
tree | 2c6799c17b6b13261b027afedabdba4ae83ff061 /src/amd/vulkan/radv_shader.h | |
parent | d28cbf6f9efa17c762375b91130c73c6cf3db2db (diff) |
radv: add radv_shader_dump_stats() helper
To dump the shader stats when a 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 | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_shader.h b/src/amd/vulkan/radv_shader.h index 9de3c27550d..467557e5fc3 100644 --- a/src/amd/vulkan/radv_shader.h +++ b/src/amd/vulkan/radv_shader.h @@ -100,4 +100,10 @@ radv_shader_stage_to_user_data_0(gl_shader_stage stage, bool has_gs, const char * radv_get_shader_name(struct radv_shader_variant *var, gl_shader_stage stage); +void +radv_shader_dump_stats(struct radv_device *device, + struct radv_shader_variant *variant, + gl_shader_stage stage, + FILE *file); + #endif |