From 957186102f90c6e1dc6d0d869cd79fa435dcd02c Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Sun, 19 Mar 2023 15:07:26 +0200 Subject: [PATCH] anv: report shader max dispatch width in pipeline props Signed-off-by: Lionel Landwerlin Reviewed-by: Sagar Ghuge Part-of: --- src/intel/vulkan/anv_pipeline.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 2cd7540..ccaed38 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -3394,6 +3394,14 @@ VkResult anv_GetPipelineExecutableStatisticsKHR( } vk_outarray_append_typed(VkPipelineExecutableStatisticKHR, &out, stat) { + WRITE_STR(stat->name, "Max dispatch width"); + WRITE_STR(stat->description, + "Largest SIMD dispatch width."); + stat->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_UINT64_KHR; + stat->value.u64 = exe->stats.max_dispatch_width; + } + + vk_outarray_append_typed(VkPipelineExecutableStatisticKHR, &out, stat) { WRITE_STR(stat->name, "Max live registers"); WRITE_STR(stat->description, "Maximum number of registers used across the entire shader."); -- 2.7.4