radeonsi/video: Set correct minimum size for VP9 decode

Cc: mesa-stable
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35997>
This commit is contained in:
David Rosca
2025-07-08 09:16:54 +02:00
committed by Marge Bot
parent cf654be16b
commit 42a25b2493
+3 -1
View File
@@ -478,7 +478,9 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
return 1;
case PIPE_VIDEO_CAP_MIN_WIDTH:
case PIPE_VIDEO_CAP_MIN_HEIGHT:
return (codec == PIPE_VIDEO_FORMAT_AV1) ? 16 : 64;
if (codec == PIPE_VIDEO_FORMAT_VP9 || codec == PIPE_VIDEO_FORMAT_AV1)
return 16;
return 64;
case PIPE_VIDEO_CAP_MAX_WIDTH:
if (codec != PIPE_VIDEO_FORMAT_UNKNOWN && QUERYABLE_KERNEL)
return KERNEL_DEC_CAP(codec, max_width);