radv/radeonsi: Don't count read-only data when reporting code size
We usually use these counts as a simple way to figure out if a change reduces the number of instructions or shrinks an instruction. However, since .rodata sections aren't executed, we shouldn't be counting their size for this analysis. Make the linker return the total executable size, and use it to report the more useful size in both drivers. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
@@ -5025,7 +5025,7 @@ VkResult radv_GetPipelineExecutableStatisticsKHR(
|
||||
desc_copy(s->name, "Code size");
|
||||
desc_copy(s->description, "Code size in bytes");
|
||||
s->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_UINT64_KHR;
|
||||
s->value.u64 = shader->code_size;
|
||||
s->value.u64 = shader->exec_size;
|
||||
}
|
||||
++s;
|
||||
|
||||
|
Reference in New Issue
Block a user