ac: Add vcn_5_3_0 support

Enable hardware decode/encode capabilities for VCN 5.3.0 by
configuring the supported codec list. This allows vainfo to
properly enumerate available codec capabilities.

Signed-off-by: Suresh Guttula <suresh.guttula@amd.com>
Reviewed-by: David Rosca <david.rosca@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41202>
This commit is contained in:
Suresh Guttula 2025-11-10 12:22:33 +05:30
parent 0e04954c9a
commit 71508d90aa
3 changed files with 8 additions and 0 deletions

View file

@ -812,6 +812,9 @@ ac_identify_chip(struct radeon_info *info, const struct drm_amdgpu_info_device *
case VCN_IP_VERSION(5, 0, 1):
info->vcn_ip_version = VCN_5_0_1;
break;
case VCN_IP_VERSION(5, 3, 0):
info->vcn_ip_version = VCN_5_3_0;
break;
default:
info->vcn_ip_version = VCN_UNKNOWN;
}

View file

@ -2347,6 +2347,10 @@ ac_vcn_create_video_decoder(const struct radeon_info *info, struct ac_video_dec_
dec->addr_mode = RDECODE_ARRAY_MODE_ADDRLIB_SEL_GFX9;
dec->av1_version = RDECODE_AV1_VER_2;
break;
case VCN_5_3_0:
dec->addr_mode = RDECODE_ARRAY_MODE_ADDRLIB_SEL_GFX11;
dec->av1_version = RDECODE_AV1_VER_2;
break;
default:
assert(!"unsupported vcn version");
}

View file

@ -221,6 +221,7 @@ enum vcn_version{
VCN_5_0_0,
VCN_5_0_1,
VCN_5_3_0,
};
#define VPE_VERSION_VALUE(major, minor, rev) (((major) << 16) | ((minor) << 8) | (rev))