tu: Add early preamble statistic

It can affect performance if we accidentally disable early preamble so
record it here.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29903>
This commit is contained in:
Connor Abbott
2024-06-25 06:23:26 -04:00
committed by Marge Bot
parent 337fb7dec2
commit 78c5daf029

View File

@@ -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);
}