tu: Report code size in pipeline statistics

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14754>
This commit is contained in:
Connor Abbott 2022-01-27 16:48:05 +01:00 committed by Marge Bot
parent 583e4549fe
commit 065785e689

View file

@ -3537,6 +3537,15 @@ tu_GetPipelineExecutableStatisticsKHR(
stat->value.u64 = exe->stats.instrs_count;
}
vk_outarray_append(&out, stat) {
WRITE_STR(stat->name, "Code size");
WRITE_STR(stat->description,
"Total number of dwords in the final generated "
"shader executable.");
stat->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_UINT64_KHR;
stat->value.u64 = exe->stats.sizedwords;
}
vk_outarray_append(&out, stat) {
WRITE_STR(stat->name, "NOPs Count");
WRITE_STR(stat->description,