| From 99d2951d82e2e9ae100e336bd9453df70af38e21 Mon Sep 17 00:00:00 2001 |
| From: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> |
| Date: Wed, 12 Feb 2020 11:22:06 +0100 |
| Subject: [PATCH 6/8] st/va: enable 4:2:2 chroma format |
| |
| Everything is in place to support them. |
| |
| Acked-by: Leo Liu <leo.liu@amd.com> |
| Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3738> |
| --- |
| 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.17.1 |
| |