From 73a31dafbcbf390dc2427e37a1cc17ef20a42c29 Mon Sep 17 00:00:00 2001 From: Natalie Vock Date: Mon, 10 Nov 2025 17:47:48 +0100 Subject: [PATCH] radv: Fix PSO history with RT pipelines 1. The prolog needs to have a null check. Libraries don't have prologs. 2. We only need to print the shaders actually included in this pipeline. Libraries were already printed separately. 3. The traversal shader was wrongly omitted from the output. Cc: mesa-stable Part-of: --- src/amd/vulkan/radv_pipeline.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 4d23189f692..44bef619563 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -1245,9 +1245,13 @@ radv_pipeline_report_pso_history(const struct radv_device *device, struct radv_p case RADV_PIPELINE_RAY_TRACING: { struct radv_ray_tracing_pipeline *rt_pipeline = radv_pipeline_to_ray_tracing(pipeline); - radv_print_pso_history(pipeline, rt_pipeline->prolog, output); + if (rt_pipeline->prolog) + radv_print_pso_history(pipeline, rt_pipeline->prolog, output); - for (uint32_t i = 0; i < rt_pipeline->stage_count; i++) { + if (pipeline->shaders[MESA_SHADER_INTERSECTION]) + radv_print_pso_history(pipeline, pipeline->shaders[MESA_SHADER_INTERSECTION], output); + + for (uint32_t i = 0; i < rt_pipeline->non_imported_stage_count; i++) { const struct radv_shader *shader = rt_pipeline->stages[i].shader; if (shader)