mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 16:00:09 +01:00
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:
parent
46b561b7cd
commit
d3429a7e00
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue