From b4d185b44bce20dcc7a7e1a24e01aac781b5ffba Mon Sep 17 00:00:00 2001 From: Leo Liu Date: Sat, 5 Jun 2021 19:29:08 -0400 Subject: [PATCH] frontends/va: use the correct entrypoint to get config attributes PIPE_VIDEO_ENTRYPOINT_ENCODE should be used in this case. Signed-off-by: Leo Liu Reviewed-by: James Zhu Part-of: --- src/gallium/frontends/va/config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/frontends/va/config.c b/src/gallium/frontends/va/config.c index 2b37d8cb8d3..80cf94df637 100644 --- a/src/gallium/frontends/va/config.c +++ b/src/gallium/frontends/va/config.c @@ -149,10 +149,10 @@ vlVaGetConfigAttributes(VADriverContextP ctx, VAProfile profile, VAEntrypoint en value = VA_RT_FORMAT_YUV420; if (pscreen->is_video_format_supported(pscreen, PIPE_FORMAT_P010, ProfileToPipe(profile), - PIPE_VIDEO_ENTRYPOINT_BITSTREAM) || + PIPE_VIDEO_ENTRYPOINT_ENCODE) || pscreen->is_video_format_supported(pscreen, PIPE_FORMAT_P016, ProfileToPipe(profile), - PIPE_VIDEO_ENTRYPOINT_BITSTREAM)) + PIPE_VIDEO_ENTRYPOINT_ENCODE)) value |= VA_RT_FORMAT_YUV420_10BPP; break; case VAConfigAttribRateControl: