From 810da51e9130fbcaf664f5758804d6b7cd20edb0 Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Fri, 9 Jun 2023 16:32:17 +0300 Subject: [PATCH] anv: report max simd width only once for fragment shaders Reporting the value multiple times is confusing to shader-db scripts because it believes multiple shaders are affected. Signed-off-by: Lionel Landwerlin Acked-by: Emma Anholt Part-of: --- src/intel/vulkan/anv_pipeline.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 50e05a7cb02..8fe21e4e586 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -4224,7 +4224,11 @@ VkResult anv_GetPipelineExecutableStatisticsKHR( 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; + /* Report the max dispatch width only on the smallest SIMD variant */ + if (exe->stage != MESA_SHADER_FRAGMENT || exe->stats.dispatch_width == 8) + stat->value.u64 = exe->stats.max_dispatch_width; + else + stat->value.u64 = 0; } vk_outarray_append_typed(VkPipelineExecutableStatisticKHR, &out, stat) {