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 <thong.thai@xxxxxxx> Reviewed-by: Ruijing Dong <ruijing.dong@xxxxxxx> The patch is attached for review. Thanks, Thong Thai
From dcbee2f308260cb9a9517387ffc5126fae59e91a Mon Sep 17 00:00:00 2001 From: Thong Thai <thong.thai@xxxxxxx> 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 <thong.thai@xxxxxxx> Reviewed-by: Ruijing Dong <ruijing.dong@xxxxxxx> --- drivers/gpu/drm/amd/amdgpu/nv.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/soc15.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/nv.c b/drivers/gpu/drm/amd/amdgpu/nv.c index 7d437b82159e..19ffec78b099 100644 --- a/drivers/gpu/drm/amd/amdgpu/nv.c +++ b/drivers/gpu/drm/amd/amdgpu/nv.c @@ -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 = diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index 3221522e71e8..761b287cc44c 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c @@ -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 = -- 2.40.1