From 78c5daf0298d8d4ef52dc1795566bff864f8a170 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Tue, 25 Jun 2024 06:23:26 -0400 Subject: [PATCH] tu: Add early preamble statistic It can affect performance if we accidentally disable early preamble so record it here. Part-of: --- src/freedreno/vulkan/tu_pipeline.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/freedreno/vulkan/tu_pipeline.cc b/src/freedreno/vulkan/tu_pipeline.cc index 3048c9ff725..d3cabe81bdf 100644 --- a/src/freedreno/vulkan/tu_pipeline.cc +++ b/src/freedreno/vulkan/tu_pipeline.cc @@ -4607,6 +4607,14 @@ tu_GetPipelineExecutableStatisticsKHR( stat->value.u64 = exe->stats.ldp_count; } + vk_outarray_append_typed(VkPipelineExecutableStatisticKHR, &out, stat) { + WRITE_STR(stat->name, "Early preamble"); + WRITE_STR(stat->description, + "Whether the preamble will be executed early."); + stat->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_BOOL32_KHR; + stat->value.b32 = exe->stats.early_preamble; + } + return vk_outarray_status(&out); }