From: Pierre-Eric Pelloux-Prayer Date: Wed, 12 Feb 2020 10:22:06 +0000 (+0100) Subject: st/va: enable 4:2:2 chroma format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2e715e57a49c52a728ff0f9ca84111197a786ac;p=mesa.git st/va: enable 4:2:2 chroma format Everything is in place to support them. Acked-by: Leo Liu Part-of: --- 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;