From 1dfee91fdf1002ac5c2ae555b374d501d4437f8f Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 8 Mar 2022 14:05:52 +0100 Subject: [PATCH] radv: export the pipeline hash via VK_KHR_pipeline_executable_properties This will help to match RGP<->Fossilize pipelines. Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_pipeline.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/amd/vulkan/radv_pipeline.c b/src/amd/vulkan/radv_pipeline.c index 6cc5157f340..958395b1233 100644 --- a/src/amd/vulkan/radv_pipeline.c +++ b/src/amd/vulkan/radv_pipeline.c @@ -6709,6 +6709,14 @@ radv_GetPipelineExecutableStatisticsKHR(VkDevice _device, VkPipelineExecutableStatisticKHR *end = s + (pStatistics ? *pStatisticCount : 0); VkResult result = VK_SUCCESS; + if (s < end) { + desc_copy(s->name, "Driver pipeline hash"); + desc_copy(s->description, "Driver pipeline hash used by RGP"); + s->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_UINT64_KHR; + s->value.u64 = pipeline->pipeline_hash; + } + ++s; + if (s < end) { desc_copy(s->name, "SGPRs"); desc_copy(s->description, "Number of SGPR registers allocated per subgroup");