From 16a2aeeb93abd92b1cb84209a984b695b25433ef Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 26 Mar 2026 11:02:24 +0100 Subject: [PATCH] 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 Part-of: --- src/gallium/auxiliary/vl/vl_deint_filter.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_deint_filter.c b/src/gallium/auxiliary/vl/vl_deint_filter.c index 48244435546..809a5c1bf88 100644 --- a/src/gallium/auxiliary/vl/vl_deint_filter.c +++ b/src/gallium/auxiliary/vl/vl_deint_filter.c @@ -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;