From 7ec2544a9b8ee72ac384bb5a57326a4e386dab6f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Thu, 26 Oct 2023 11:58:40 +0200 Subject: [PATCH] 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 Part-of: --- 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);