Module: Mesa Branch: main Commit: 7ec2544a9b8ee72ac384bb5a57326a4e386dab6f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ec2544a9b8ee72ac384bb5a57326a4e386dab6f
Author: Samuel Pitoiset <samuel.pitoi...@gmail.com> Date: Thu Oct 26 11:58:40 2023 +0200 radv: dump the pipeline hash to the gpu hang report It can be useful to verify that a specific pipeline causes a hang. Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25908> --- src/amd/vulkan/radv_debug.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/amd/vulkan/radv_debug.c b/src/amd/vulkan/radv_debug.c index e27235d919d..de4bf0af68d 100644 --- a/src/amd/vulkan/radv_debug.c +++ b/src/amd/vulkan/radv_debug.c @@ -469,6 +469,8 @@ radv_dump_queue_state(struct radv_queue *queue, const char *dump_dir, FILE *f) pipeline = radv_get_saved_pipeline(queue->device, ring); if (pipeline) { + fprintf(f, "Pipeline hash: %" PRIx64 "\n", pipeline->pipeline_hash); + if (pipeline->type == RADV_PIPELINE_GRAPHICS) { struct radv_graphics_pipeline *graphics_pipeline = radv_pipeline_to_graphics(pipeline);