mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 02:20:11 +01:00
frontends/va: Add profile param when querying PIPE_VIDEO_CAP_ENC_QUALITY_LEVEL
Pass the specific profile as drivers may only support quality levels for specific codecs or profiles. Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25819>
This commit is contained in:
parent
cd08d331f3
commit
0996ec3fc6
1 changed files with 1 additions and 1 deletions
|
|
@ -1141,7 +1141,7 @@ vlVaEndPicture(VADriverContextP ctx, VAContextID context_id)
|
||||||
context->desc.h264enc.frame_num_cnt++;
|
context->desc.h264enc.frame_num_cnt++;
|
||||||
|
|
||||||
/* keep other path the same way */
|
/* keep other path the same way */
|
||||||
if (!screen->get_video_param(screen, PIPE_VIDEO_PROFILE_UNKNOWN,
|
if (!screen->get_video_param(screen, ProfileToPipe(context->templat.profile),
|
||||||
context->decoder->entrypoint,
|
context->decoder->entrypoint,
|
||||||
PIPE_VIDEO_CAP_ENC_QUALITY_LEVEL)) {
|
PIPE_VIDEO_CAP_ENC_QUALITY_LEVEL)) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue