From 8d956f740bbfff57743649ab59d8f56e30db320b Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 28 Mar 2023 00:29:11 +0000 Subject: [PATCH] drm/amdgpu/soc21: Add video cap query support for VCN_4_0_4 From Veerabadhran Gopalakrishnan 70f12dee2254dd956ffaf547507b688887fed6c6 in linux-6.1.y/6.1.20 6ce2ea07c5ff0a8188eab0e5cd1f0e4899b36835 in mainline linux --- sys/dev/pci/drm/amd/amdgpu/soc21.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/pci/drm/amd/amdgpu/soc21.c b/sys/dev/pci/drm/amd/amdgpu/soc21.c index 61ee41aa8ab..9c52af50052 100644 --- a/sys/dev/pci/drm/amd/amdgpu/soc21.c +++ b/sys/dev/pci/drm/amd/amdgpu/soc21.c @@ -109,6 +109,7 @@ static int soc21_query_video_codecs(struct amdgpu_device *adev, bool encode, switch (adev->ip_versions[UVD_HWIP][0]) { case IP_VERSION(4, 0, 0): case IP_VERSION(4, 0, 2): + case IP_VERSION(4, 0, 4): if (adev->vcn.harvest_config & AMDGPU_VCN_HARVEST_VCN0) { if (encode) *codecs = &vcn_4_0_0_video_codecs_encode_vcn1; -- 2.20.1