Mesa (main): frontends/va: use the correct entrypoint to get config attributes

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


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

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

frontends/va: use the correct entrypoint to get config attributes

PIPE_VIDEO_ENTRYPOINT_ENCODE should be used in this case.

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/config.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/frontends/va/config.c b/src/gallium/frontends/va/config.c
index 2b37d8cb8d3..80cf94df637 100644
--- a/src/gallium/frontends/va/config.c
+++ b/src/gallium/frontends/va/config.c
@@ -149,10 +149,10 @@ vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint en
             value = VA_RT_FORMAT_YUV420;
             if (pscreen->is_video_format_supported(pscreen, PIPE_FORMAT_P010,
                                                    ProfileToPipe(profile),
-                                                   PIPE_VIDEO_ENTRYPOINT_BITSTREAM) ||
+                                                   PIPE_VIDEO_ENTRYPOINT_ENCODE) ||
                 pscreen->is_video_format_supported(pscreen, PIPE_FORMAT_P016,
                                                    ProfileToPipe(profile),
-                                                   PIPE_VIDEO_ENTRYPOINT_BITSTREAM))
+                                                   PIPE_VIDEO_ENTRYPOINT_ENCODE))
                value |= VA_RT_FORMAT_YUV420_10BPP;
             break;
          case VAConfigAttribRateControl:



More information about the mesa-commit mailing list