frontends/va: Add YUV420 to NV12 postproc conversion

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/7853
Reviewed-by: Thong Thai <thong.thai@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24272>
This commit is contained in:
David Rosca 2023-07-21 11:05:35 +02:00 committed by Marge Bot
parent c0545f2a4f
commit 0a5fe1f524
2 changed files with 4 additions and 1 deletions

View file

@ -73,6 +73,7 @@ vl_video_buffer_plane_order(enum pipe_format format)
{
switch(format) {
case PIPE_FORMAT_YV12:
case PIPE_FORMAT_IYUV:
return const_resource_plane_order_YVU;
case PIPE_FORMAT_NV12:

View file

@ -255,7 +255,9 @@ static VAStatus vlVaPostProcBlit(vlVaDriver *drv, vlVaContext *context,
}
if (src->buffer_format == PIPE_FORMAT_YUYV ||
src->buffer_format == PIPE_FORMAT_UYVY) {
src->buffer_format == PIPE_FORMAT_UYVY ||
src->buffer_format == PIPE_FORMAT_YV12 ||
src->buffer_format == PIPE_FORMAT_IYUV) {
vl_compositor_yuv_deint_full(&drv->cstate, &drv->compositor,
src, dst, &src_rect, &dst_rect,
VL_COMPOSITOR_NONE);