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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user