From f7bd375e3954bc96c31df43652ce1d845427501a Mon Sep 17 00:00:00 2001 From: Sil Vilerino Date: Mon, 17 Apr 2023 11:50:30 -0400 Subject: [PATCH] frontend/va: Add VAProfileH264High10 Acked-by: Ruijing Dong Reviewed-by: Giancarlo Devich Part-of: --- src/gallium/frontends/va/va_private.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/gallium/frontends/va/va_private.h b/src/gallium/frontends/va/va_private.h index 2126447..c1fe67f 100644 --- a/src/gallium/frontends/va/va_private.h +++ b/src/gallium/frontends/va/va_private.h @@ -207,6 +207,12 @@ PipeToProfile(enum pipe_video_profile profile) return VAProfileH264Main; case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH: return VAProfileH264High; + case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10: +#if VA_CHECK_VERSION(1, 18, 0) + return VAProfileH264High10; +#else + return VAProfileNone; +#endif case PIPE_VIDEO_PROFILE_HEVC_MAIN: return VAProfileHEVCMain; case PIPE_VIDEO_PROFILE_HEVC_MAIN_10: @@ -220,7 +226,6 @@ PipeToProfile(enum pipe_video_profile profile) 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: case PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH444: case PIPE_VIDEO_PROFILE_MPEG4_AVC_CONSTRAINED_BASELINE: @@ -259,6 +264,10 @@ ProfileToPipe(VAProfile profile) return PIPE_VIDEO_PROFILE_MPEG4_AVC_MAIN; case VAProfileH264High: return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH; +#if VA_CHECK_VERSION(1, 18, 0) + case VAProfileH264High10: + return PIPE_VIDEO_PROFILE_MPEG4_AVC_HIGH10; +#endif case VAProfileHEVCMain: return PIPE_VIDEO_PROFILE_HEVC_MAIN; case VAProfileHEVCMain10: -- 2.7.4