From d2e715e57a49c52a728ff0f9ca84111197a786ac Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Wed, 12 Feb 2020 11:22:06 +0100 Subject: [PATCH] st/va: enable 4:2:2 chroma format Everything is in place to support them. Acked-by: Leo Liu Part-of: --- src/gallium/state_trackers/va/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/state_trackers/va/config.c b/src/gallium/state_trackers/va/config.c index 5becc49ce63..53d50fde63f 100644 --- a/src/gallium/state_trackers/va/config.c +++ b/src/gallium/state_trackers/va/config.c @@ -124,7 +124,7 @@ vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint en if (entrypoint == VAEntrypointVLD) { switch (attrib_list[i].type) { case VAConfigAttribRTFormat: - value = VA_RT_FORMAT_YUV420; + value = VA_RT_FORMAT_YUV420 | VA_RT_FORMAT_YUV422; if (pscreen->is_video_format_supported(pscreen, PIPE_FORMAT_P016, ProfileToPipe(profile), PIPE_VIDEO_ENTRYPOINT_BITSTREAM)) @@ -256,7 +256,7 @@ vlVaCreateConfig(VADriverContextP ctx, VAProfile profile, VAEntrypoint entrypoin } config->profile = p; - supported_rt_formats = VA_RT_FORMAT_YUV420; + supported_rt_formats = VA_RT_FORMAT_YUV420 | VA_RT_FORMAT_YUV422; if (pscreen->is_video_format_supported(pscreen, PIPE_FORMAT_P016, p, config->entrypoint)) supported_rt_formats |= VA_RT_FORMAT_YUV420_10BPP; -- 2.30.2