radeonsi: Fix reported minimum width for video encode
Some apps would default to smaller resolutions than we currently report as supported, despite the hardware being able to encode it. It's also common for test apps/suites to use small resolutions. libva-utils/h264encode uses 176x144 resolution by default and vulkan cts have video clips with the same resolution too which would previously fail to encode. Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31109>
This commit is contained in:
@@ -686,7 +686,7 @@ 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:
|
||||
return 256;
|
||||
return (codec == PIPE_VIDEO_FORMAT_HEVC) ? 130 : 128;
|
||||
case PIPE_VIDEO_CAP_MIN_HEIGHT:
|
||||
return 128;
|
||||
case PIPE_VIDEO_CAP_MAX_WIDTH:
|
||||
|
||||
Reference in New Issue
Block a user