frontend/va: Add support for VAConfigAttribEncMaxTileRows/Cols
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25819>
This commit is contained in:
@@ -493,6 +493,28 @@ vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint en
|
||||
else
|
||||
value = encode_tile_support;
|
||||
} break;
|
||||
#endif
|
||||
#if VA_CHECK_VERSION(1, 21, 0)
|
||||
case VAConfigAttribEncMaxTileRows:
|
||||
{
|
||||
int max_tile_rows = pscreen->get_video_param(pscreen, ProfileToPipe(profile),
|
||||
PIPE_VIDEO_ENTRYPOINT_ENCODE,
|
||||
PIPE_VIDEO_CAP_ENC_MAX_TILE_ROWS);
|
||||
if (max_tile_rows <= 0)
|
||||
value = VA_ATTRIB_NOT_SUPPORTED;
|
||||
else
|
||||
value = max_tile_rows;
|
||||
} break;
|
||||
case VAConfigAttribEncMaxTileCols:
|
||||
{
|
||||
int max_tile_cols = pscreen->get_video_param(pscreen, ProfileToPipe(profile),
|
||||
PIPE_VIDEO_ENTRYPOINT_ENCODE,
|
||||
PIPE_VIDEO_CAP_ENC_MAX_TILE_COLS);
|
||||
if (max_tile_cols <= 0)
|
||||
value = VA_ATTRIB_NOT_SUPPORTED;
|
||||
else
|
||||
value = max_tile_cols;
|
||||
} break;
|
||||
#endif
|
||||
default:
|
||||
value = VA_ATTRIB_NOT_SUPPORTED;
|
||||
|
@@ -139,6 +139,8 @@ enum pipe_video_cap
|
||||
PIPE_VIDEO_CAP_ENC_AV1_FEATURE_EXT1 = 38,
|
||||
PIPE_VIDEO_CAP_ENC_AV1_FEATURE_EXT2 = 39,
|
||||
PIPE_VIDEO_CAP_ENC_SUPPORTS_TILE = 40,
|
||||
PIPE_VIDEO_CAP_ENC_MAX_TILE_ROWS = 41,
|
||||
PIPE_VIDEO_CAP_ENC_MAX_TILE_COLS = 42,
|
||||
};
|
||||
|
||||
enum pipe_video_av1_enc_filter_mode
|
||||
|
Reference in New Issue
Block a user