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:
Thong Thai
2023-04-13 10:19:43 -04:00
committed by Marge Bot
parent 7bce60f8af
commit 413235d164
+7
View File
@@ -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);