Mesa (main): frontends/va: include the profile queries for encoder as well

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


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

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

frontends/va: include the profile queries for encoder as well

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/frontends/va/config.c b/src/gallium/frontends/va/config.c
index 80cf94df637..b654f42838a 100644
--- a/src/gallium/frontends/va/config.c
+++ b/src/gallium/frontends/va/config.c
@@ -56,7 +56,8 @@ vlVaQueryConfigProfiles(VADriverContextP ctx, VAProfile *profile_list, int *num_
       if (u_reduce_video_profile(p) == PIPE_VIDEO_FORMAT_MPEG4 && !debug_get_option_mpeg4())
          continue;
 
-      if (pscreen->get_video_param(pscreen, p, PIPE_VIDEO_ENTRYPOINT_BITSTREAM, PIPE_VIDEO_CAP_SUPPORTED)) {
+      if (pscreen->get_video_param(pscreen, p, PIPE_VIDEO_ENTRYPOINT_BITSTREAM, PIPE_VIDEO_CAP_SUPPORTED) ||
+          pscreen->get_video_param(pscreen, p, PIPE_VIDEO_ENTRYPOINT_ENCODE, PIPE_VIDEO_CAP_SUPPORTED)) {
          vap = PipeToProfile(p);
          if (vap != VAProfileNone)
             profile_list[(*num_profiles)++] = vap;



More information about the mesa-commit mailing list