drm/amdgpu: vcn_4_0_2 video codec query
authorSonny Jiang <sonny.jiang@amd.com>
Thu, 21 Jul 2022 17:27:11 +0000 (13:27 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Jul 2022 20:28:54 +0000 (16:28 -0400)
Enable support for vcn_4_0_2 video codec

Signed-off-by: Sonny Jiang <sonny.jiang@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/soc21.c

index 00e9b70..68e7898 100644 (file)
@@ -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