Skip to contentSkip to conversation

drm/amdgpu: update soc15 and nv max encoding height

PATCH Thong Thai 1 participant 1 message May 1, 2023

Subsystems (2)
lore
Share & tools
lore

Thong Thai

author
#0 lore raw

    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.

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.

---
 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
index 7d437b82159e..19ffec78b099 100644
@@ -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
index 3221522e71e8..761b287cc44c 100644
@@ -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