frontends/va: Fix deinterlace filter

Deinterlace filter uses interlaced buffer for output which needs
to be converted to progressive. Add back code that handles this.

Fixes: c324364f39 ("frontends/va: Only use interlaced surfaces when progressive is not supported")
Reviewed-by: David (Ming Qiang) Wu <David.Wu3@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32768>
This commit is contained in:
David Rosca
2024-12-23 10:34:47 +01:00
committed by Marge Bot
parent 5e4aeb3ad7
commit a642ff15a6
+9
View File
@@ -415,6 +415,15 @@ static VAStatus vlVaPostProcBlit(vlVaDriver *drv, vlVaContext *context,
return VA_STATUS_SUCCESS;
}
if (src->interlaced != dst->interlaced) {
deinterlace = deinterlace ? deinterlace : VL_COMPOSITOR_WEAVE;
vl_compositor_yuv_deint_full(&drv->cstate, &drv->compositor,
src, dst, &src_rect, &dst_rect,
deinterlace);
return VA_STATUS_SUCCESS;
}
for (i = 0; i < VL_MAX_SURFACES; ++i) {
struct pipe_surface *from = src_surfaces[i];
struct pipe_blit_info blit;