radv,aco: remove aco_compiler_statistics

This removes a pointer from radv_shader_binary_legacy::data.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9411>
This commit is contained in:
Rhys Perry
2021-03-04 16:41:05 +00:00
committed by Marge Bot
parent b4d1764b46
commit 7c7e8942f8
4 changed files with 13 additions and 18 deletions

View File

@@ -5943,14 +5943,13 @@ VkResult radv_GetPipelineExecutableStatisticsKHR(
++s;
if (shader->statistics) {
for (unsigned i = 0; i < shader->statistics->count; i++) {
const struct aco_compiler_statistic_info *info = &shader->statistics->infos[i];
uint32_t value = shader->statistics->values[i];
for (unsigned i = 0; i < aco_num_statistics; i++) {
const struct aco_compiler_statistic_info *info = &aco_statistic_infos[i];
if (s < end) {
desc_copy(s->name, info->name);
desc_copy(s->description, info->desc);
s->format = VK_PIPELINE_EXECUTABLE_STATISTIC_FORMAT_UINT64_KHR;
s->value.u64 = value;
s->value.u64 = shader->statistics[i];
}
++s;
}