radeonsi: Update minimum supported encode size for VCN5

Cc: mesa-stable
Reviewed-by: David (Ming Qiang) Wu <David.Wu3@amd.com>
(cherry picked from commit 6115cf93b0)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32730>
This commit is contained in:
David Rosca 2024-11-07 09:15:44 +01:00 committed by Dylan Baker
parent 9f193474c5
commit 5018676dfd
2 changed files with 11 additions and 1 deletions

View file

@ -194,7 +194,7 @@
"description": "radeonsi: Update minimum supported encode size for VCN5",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -683,8 +683,18 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
case PIPE_VIDEO_CAP_NPOT_TEXTURES:
return 1;
case PIPE_VIDEO_CAP_MIN_WIDTH:
if (sscreen->info.vcn_ip_version >= VCN_5_0_0) {
if (codec == PIPE_VIDEO_FORMAT_MPEG4_AVC)
return 96;
else if (codec == PIPE_VIDEO_FORMAT_HEVC)
return 384;
else if (codec == PIPE_VIDEO_FORMAT_AV1)
return 320;
}
return (codec == PIPE_VIDEO_FORMAT_HEVC) ? 130 : 128;
case PIPE_VIDEO_CAP_MIN_HEIGHT:
if (sscreen->info.vcn_ip_version >= VCN_5_0_0 && codec == PIPE_VIDEO_FORMAT_MPEG4_AVC)
return 32;
return 128;
case PIPE_VIDEO_CAP_MAX_WIDTH:
if (codec != PIPE_VIDEO_FORMAT_UNKNOWN && QUERYABLE_KERNEL)