drm/amdgpu: update soc15 and nv max encoding height
Subsystems (2)
drm/amdgpu: update soc15 and nv max encoding height
Update the values reported for Vega, VCN1/2: H.264 and HEVC encoding maximum supported height to match the values from the hardware spec.
Signed-off-by Thong Thai <[email protected]>
Reviewed-by Ruijing Dong <[email protected]>
The patch is attached for review.
Thanks,
Thong Thai
From dcbee2f308260cb9a9517387ffc5126fae59e91a Mon Sep 17 00:00:00 2001
From: Thong Thai <[email protected]>
Date: Mon, 1 May 2023 11:58:42 -0400
Subject: [PATCH] drm/amdgpu: update soc15 and nv max encoding height
Update the values reported for Vega, VCN1/2: H.264 and HEVC encoding maximum supported height to match the values from the hardware spec.
Signed-off-by Thong Thai <[email protected]>
Reviewed-by Ruijing Dong <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/nv.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/amdgpu/nv.c +2 -2
@@ -69,8 +69,8 @@ static const struct amd_ip_funcs nv_common_ip_funcs;/* Navi */ static const struct amdgpu_video_codec_info nv_video_codecs_encode_array[] = { - {codec_info_build (AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_MPEG4_AVC ,4096 ,2304 ,0 )}, - {codec_info_build (AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_HEVC ,4096 ,2304 ,0 )}, + {codec_info_build (AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_MPEG4_AVC ,4096 ,2160 ,0 )}, + {codec_info_build (AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_HEVC ,4096 ,2176 ,0 )}, }; static const struct amdgpu_video_codecs nv_video_codecs_encode =
drivers/gpu/drm/amd/amdgpu/soc15.c +2 -2
@@ -90,8 +90,8 @@ static const struct amd_ip_funcs soc15_common_ip_funcs;/* Vega, Raven, Arcturus */ static const struct amdgpu_video_codec_info vega_video_codecs_encode_array[] = { - {codec_info_build (AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_MPEG4_AVC ,4096 ,2304 ,0 )}, - {codec_info_build (AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_HEVC ,4096 ,2304 ,0 )}, + {codec_info_build (AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_MPEG4_AVC ,4096 ,2160 ,0 )}, + {codec_info_build (AMDGPU_INFO_VIDEO_CAPS_CODEC_IDX_HEVC ,4096 ,2176 ,0 )}, }; static const struct amdgpu_video_codecs vega_video_codecs_encode =
Signature · 1 line
2.40.1