mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
tu: Report code size in pipeline statistics
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14754>
This commit is contained in:
parent
583e4549fe
commit
065785e689
1 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue