radeonsi: return min width and min height video cap values
Signed-off-by: Thong Thai <thong.thai@amd.com> Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22422>
This commit is contained in:
@@ -604,6 +604,10 @@ static int si_get_video_param(struct pipe_screen *screen, enum pipe_video_profil
|
||||
(profile == PIPE_VIDEO_PROFILE_HEVC_MAIN_10 && sscreen->info.family >= CHIP_RENOIR)));
|
||||
case PIPE_VIDEO_CAP_NPOT_TEXTURES:
|
||||
return 1;
|
||||
case PIPE_VIDEO_CAP_MIN_WIDTH:
|
||||
return 256;
|
||||
case PIPE_VIDEO_CAP_MIN_HEIGHT:
|
||||
return 128;
|
||||
case PIPE_VIDEO_CAP_MAX_WIDTH:
|
||||
if (codec != PIPE_VIDEO_FORMAT_UNKNOWN && QUERYABLE_KERNEL)
|
||||
return KERNEL_ENC_CAP(codec, max_width);
|
||||
@@ -779,6 +783,9 @@ 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:
|
||||
case PIPE_VIDEO_CAP_MIN_HEIGHT:
|
||||
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