nvk: add instruction count exec property
useful for shader-db, this isn't as simple as dividing the code size so it's worth reporting. Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Reviewed-by: M Henning <drawoc@darkrefraction.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30136>
This commit is contained in:

committed by
Marge Bot

parent
4030447dab
commit
acb10043cb
@@ -914,6 +914,13 @@ nvk_shader_get_executable_statistics(
|
||||
|
||||
assert(executable_index == 0);
|
||||
|
||||
vk_outarray_append_typed(VkPipelineExecutableStatisticKHR, &out, stat) {
|
||||
WRITE_STR(stat->name, "Instruction count");
|
||||
WRITE_STR(stat->description, "Number of instructions used by this shader");
|
||||
stat->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_UINT64_KHR;
|
||||
stat->value.u64 = shader->info.num_instrs;
|
||||
}
|
||||
|
||||
vk_outarray_append_typed(VkPipelineExecutableStatisticKHR, &out, stat) {
|
||||
WRITE_STR(stat->name, "Code Size");
|
||||
WRITE_STR(stat->description,
|
||||
|
Reference in New Issue
Block a user