ac/gpu_info: fix printing radeon_info after adding VPE

Fixes: 3ec397819e - amd: add new hardware ip for vpe

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26307>
This commit is contained in:
Marek Olšák 2023-12-01 22:54:59 -05:00 committed by Marge Bot
parent 11fcd58957
commit 2f281b39ab

View file

@ -1701,7 +1701,7 @@ void ac_print_gpu_info(const struct radeon_info *info, FILE *f)
fprintf(f, " pcie_bandwidth = %1.1f GB/s\n", info->pcie_bandwidth_mbps / 1024.0);
fprintf(f, " clock_crystal_freq = %i KHz\n", info->clock_crystal_freq);
const char *ip_string[] = {
const char *ip_string[AMD_NUM_IP_TYPES] = {
[AMD_IP_GFX] = "GFX",
[AMD_IP_COMPUTE] = "COMP",
[AMD_IP_SDMA] = "SDMA",
@ -1711,6 +1711,7 @@ void ac_print_gpu_info(const struct radeon_info *info, FILE *f)
[AMD_IP_VCN_DEC] = "VCN_DEC",
[AMD_IP_VCN_ENC] = (info->vcn_ip_version >= VCN_4_0_0) ? "VCN" : "VCN_ENC",
[AMD_IP_VCN_JPEG] = "VCN_JPG",
[AMD_IP_VPE] = "VPE",
};
for (unsigned i = 0; i < AMD_NUM_IP_TYPES; i++) {