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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user