From: jsg Date: Tue, 28 Mar 2023 00:29:11 +0000 (+0000) Subject: drm/amdgpu/soc21: Add video cap query support for VCN_4_0_4 X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8d956f740bbfff57743649ab59d8f56e30db320b;p=openbsd 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 --- 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;