frontends/va: Remove wrong use of ProfileToPipe
The `context->templat.profile` variable is already of enum pipe_video_profile.
Fixes: 0996ec3fc6
("frontends/va: Add profile param when querying PIPE_VIDEO_CAP_ENC_QUALITY_LEVEL")
Signed-off-by: Corentin Noël <corentin.noel@collabora.com>
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26067>
This commit is contained in:
@@ -1148,7 +1148,7 @@ vlVaEndPicture(VADriverContextP ctx, VAContextID context_id)
|
||||
context->desc.h264enc.frame_num_cnt++;
|
||||
|
||||
/* keep other path the same way */
|
||||
if (!screen->get_video_param(screen, ProfileToPipe(context->templat.profile),
|
||||
if (!screen->get_video_param(screen, context->templat.profile,
|
||||
context->decoder->entrypoint,
|
||||
PIPE_VIDEO_CAP_ENC_QUALITY_LEVEL)) {
|
||||
|
||||
|
Reference in New Issue
Block a user