Mesa (main): frontends/va: Add AV1 profile main to the config
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Aug 13 14:19:59 UTC 2021
Module: Mesa
Branch: main
Commit: 2ea47f258d799b35fc95481829f302261f45b170
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=2ea47f258d799b35fc95481829f302261f45b170
Author: Leo Liu <leo.liu at amd.com>
Date: Sat Aug 7 17:04:20 2021 -0400
frontends/va: Add AV1 profile main to the config
Thus enabling the AV1 support
Signed-off-by: Leo Liu <leo.liu at amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12307>
---
src/gallium/frontends/va/config.c | 2 +-
src/gallium/frontends/va/va_private.h | 4 ++++
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/gallium/frontends/va/config.c b/src/gallium/frontends/va/config.c
index 337b06cfe97..569f74a7969 100644
--- a/src/gallium/frontends/va/config.c
+++ b/src/gallium/frontends/va/config.c
@@ -52,7 +52,7 @@ vlVaQueryConfigProfiles(VADriverContextP ctx, VAProfile *profile_list, int *num_
*num_profiles = 0;
pscreen = VL_VA_PSCREEN(ctx);
- for (p = PIPE_VIDEO_PROFILE_MPEG2_SIMPLE; p <= PIPE_VIDEO_PROFILE_VP9_PROFILE2; ++p) {
+ for (p = PIPE_VIDEO_PROFILE_MPEG2_SIMPLE; p <= PIPE_VIDEO_PROFILE_AV1_MAIN; ++p) {
if (u_reduce_video_profile(p) == PIPE_VIDEO_FORMAT_MPEG4 && !debug_get_option_mpeg4())
continue;
diff --git a/src/gallium/frontends/va/va_private.h b/src/gallium/frontends/va/va_private.h
index f42e0b88bbf..531bda0334a 100644
--- a/src/gallium/frontends/va/va_private.h
+++ b/src/gallium/frontends/va/va_private.h
@@ -182,6 +182,8 @@ PipeToProfile(enum pipe_video_profile profile)
return VAProfileVP9Profile0;
case PIPE_VIDEO_PROFILE_VP9_PROFILE2:
return VAProfileVP9Profile2;
+ case PIPE_VIDEO_PROFILE_AV1_MAIN:
+ return VAProfileAV1Profile0;
case PIPE_VIDEO_PROFILE_MPEG4_AVC_EXTENDED:
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10:
case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH422:
@@ -232,6 +234,8 @@ ProfileToPipe(VAProfile profile)
return PIPE_VIDEO_PROFILE_VP9_PROFILE0;
case VAProfileVP9Profile2:
return PIPE_VIDEO_PROFILE_VP9_PROFILE2;
+ case VAProfileAV1Profile0:
+ return PIPE_VIDEO_PROFILE_AV1_MAIN;
case VAProfileNone:
return PIPE_VIDEO_PROFILE_UNKNOWN;
default:
More information about the mesa-commit
mailing list