Reporting the value multiple times is confusing to shader-db scripts
because it believes multiple shaders are affected.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Acked-by: Emma Anholt <emma@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23559>
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) {