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 <leo.liu@amd.com>
Reviewed-by: James Zhu <James.Zhu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11201>
This commit is contained in:
Leo Liu
2021-06-05 19:29:08 -04:00
parent 43c04ab2b4
commit b4d185b44b
+2 -2
View File
@@ -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: