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