Mesa (main): frontends/va: use the entrypoint from context instead of the hard-coded one

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 8 14:15:50 UTC 2021


Module: Mesa
Branch: main
Commit: b8574cdaa88b275583ff9b3d4138ed6f60368ec4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8574cdaa88b275583ff9b3d4138ed6f60368ec4

Author: Leo Liu <leo.liu at amd.com>
Date:   Sat Jun  5 19:34:40 2021 -0400

frontends/va: use the entrypoint from context instead of the hard-coded one

It could fail the case where this is only encode available.

Signed-off-by: Leo Liu <leo.liu at amd.com>
Reviewed-by: James Zhu <James.Zhu at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11201>

---

 src/gallium/frontends/va/picture.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/frontends/va/picture.c b/src/gallium/frontends/va/picture.c
index 12058b3a25f..b66d80cee1c 100644
--- a/src/gallium/frontends/va/picture.c
+++ b/src/gallium/frontends/va/picture.c
@@ -675,7 +675,7 @@ vlVaEndPicture(VADriverContextP ctx, VAContextID context_id)
    }
 
    format = screen->get_video_param(screen, context->decoder->profile,
-                                    PIPE_VIDEO_ENTRYPOINT_BITSTREAM,
+                                    context->decoder->entrypoint,
                                     PIPE_VIDEO_CAP_PREFERED_FORMAT);
 
    if (surf->buffer->buffer_format != format &&



More information about the mesa-commit mailing list