vl: Use NV12 as deint format instead of preferred format

This is the last place where PIPE_VIDEO_CAP_PREFERRED_FORMAT is being
used, and all drivers return NV12 here anyway.

Reviewed-by: Ruijing Dong <ruijing.dong@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40644>
This commit is contained in:
David Rosca 2026-03-26 11:02:24 +01:00 committed by Marge Bot
parent 2282220fec
commit 16a2aeeb93

View file

@ -275,13 +275,7 @@ vl_deint_filter_init(struct vl_deint_filter *filter, struct pipe_context *pipe,
/* TODO: handle other than 4:2:0 subsampling */
memset(&templ, 0, sizeof(templ));
templ.buffer_format = pipe->screen->get_video_param
(
pipe->screen,
PIPE_VIDEO_PROFILE_UNKNOWN,
PIPE_VIDEO_ENTRYPOINT_PROCESSING,
PIPE_VIDEO_CAP_PREFERRED_FORMAT
);
templ.buffer_format = PIPE_FORMAT_NV12;
templ.width = video_width;
templ.height = video_height;
templ.interlaced = true;