From: Sonny Jiang Date: Thu, 21 Jul 2022 17:27:11 +0000 (-0400) Subject: drm/amdgpu: vcn_4_0_2 video codec query X-Git-Tag: v6.0-rc1~138^2^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1c0a90364859c17d57a7f08d6209b73e7e1142cd;p=thirdparty%2Flinux.git drm/amdgpu: vcn_4_0_2 video codec query Enable support for vcn_4_0_2 video codec Signed-off-by: Sonny Jiang Reviewed-by: James Zhu Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index 00e9b7089febd..68e78983f956a 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c @@ -80,6 +80,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): if (encode) *codecs = &vcn_4_0_0_video_codecs_encode; else