aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/soc21.c
diff options
context:
space:
mode:
authorVeerabadhran Gopalakrishnan <[email protected]>2024-02-12 07:45:27 +0000
committerAlex Deucher <[email protected]>2024-02-22 15:28:16 +0000
commit437591d2377ae3107e2ca0954cb1e9efcbf21e2b (patch)
treea41bec0d8eefda90fc84c6a98181d0c086c6a1f9 /drivers/gpu/drm/amd/amdgpu/soc21.c
parentdrm/amdgpu/vcn: Enable VCN 4.0.6 Support (diff)
downloadkernel-437591d2377ae3107e2ca0954cb1e9efcbf21e2b.tar.gz
kernel-437591d2377ae3107e2ca0954cb1e9efcbf21e2b.zip
drm/amdgpu/soc21: Added Video Capabilities for VCN 406
Updated Query Video codecs for VCN 406 Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Veerabadhran Gopalakrishnan <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/soc21.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/soc21.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c
index 2c812701592b..c663cf3a169d 100644
--- a/drivers/gpu/drm/amd/amdgpu/soc21.c
+++ b/drivers/gpu/drm/amd/amdgpu/soc21.c
@@ -185,6 +185,12 @@ static int soc21_query_video_codecs(struct amdgpu_device *adev, bool encode,
}
}
return 0;
+ case IP_VERSION(4, 0, 6):
+ if (encode)
+ *codecs = &vcn_4_0_0_video_codecs_encode_vcn0;
+ else
+ *codecs = &vcn_4_0_0_video_codecs_decode_vcn0;
+ return 0;
default:
return -EINVAL;
}