Mesa (master): st/va: enable 4:2:2 chroma format
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Feb 27 09:43:56 UTC 2020
Module: Mesa
Branch: master
Commit: d2e715e57a49c52a728ff0f9ca84111197a786ac
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2e715e57a49c52a728ff0f9ca84111197a786ac
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Wed Feb 12 11:22:06 2020 +0100
st/va: enable 4:2:2 chroma format
Everything is in place to support them.
Acked-by: Leo Liu <leo.liu at 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;
More information about the mesa-commit
mailing list