frontends/va/postproc: yuv422 to nv12

Signed-off-by: Thong Thai <thong.thai@amd.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Tested-by: Suresh Guttula <suresh.guttula@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19915>
This commit is contained in:
Thong Thai
2022-11-21 19:13:35 -05:00
committed by Marge Bot
parent 56eac722bd
commit 2f70f001a8

View File

@@ -251,6 +251,15 @@ static VAStatus vlVaPostProcBlit(vlVaDriver *drv, vlVaContext *context,
return VA_STATUS_SUCCESS;
}
if (src->buffer_format == PIPE_FORMAT_YUYV ||
src->buffer_format == PIPE_FORMAT_UYVY) {
vl_compositor_yuv_deint_full(&drv->cstate, &drv->compositor,
src, dst, &src_rect, &dst_rect,
VL_COMPOSITOR_NONE);
return VA_STATUS_SUCCESS;
}
if (src->interlaced != dst->interlaced) {
deinterlace = deinterlace ? deinterlace : VL_COMPOSITOR_WEAVE;
vl_compositor_yuv_deint_full(&drv->cstate, &drv->compositor,