From b8112ed6db7e0363dda5eb40832395f5786d8bcf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Corentin=20No=C3=ABl?= Date: Mon, 6 Nov 2023 14:29:56 +0100 Subject: [PATCH] frontends/va: Remove wrong use of ProfileToPipe MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The `context->templat.profile` variable is already of enum pipe_video_profile. Fixes: 0996ec3fc6e ("frontends/va: Add profile param when querying PIPE_VIDEO_CAP_ENC_QUALITY_LEVEL") Signed-off-by: Corentin Noël Reviewed-by: Erik Faye-Lund Part-of: (cherry picked from commit f4ed92a8236f611b5a8be9f542d81c5a5e11578a) --- .pick_status.json | 2 +- src/gallium/frontends/va/picture.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pick_status.json b/.pick_status.json index 808371d..4ed9868 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -284,7 +284,7 @@ "description": "frontends/va: Remove wrong use of ProfileToPipe", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "0996ec3fc6ea3ec3c76392f9aa15a283060f95fa", "notes": null diff --git a/src/gallium/frontends/va/picture.c b/src/gallium/frontends/va/picture.c index 4c9339f..ffedf77 100644 --- a/src/gallium/frontends/va/picture.c +++ b/src/gallium/frontends/va/picture.c @@ -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)) { -- 2.7.4