From: Thong Thai Date: Thu, 21 May 2020 23:40:13 +0000 (-0400) Subject: frontends/va: Fix deinterlace bottom field first flag X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=78786a219ea2322af09576472dcc2d6d01cb9060;p=mesa.git frontends/va: Fix deinterlace bottom field first flag Fixes an issue with mpv, where deinterlacing causes the picture to be offset by one line every other frame in the video. Signed-off-by: Thong Thai Reviewed-by: Leo Liu Part-of: --- diff --git a/src/gallium/frontends/va/postproc.c b/src/gallium/frontends/va/postproc.c index 18458832844..bd1228b3916 100644 --- a/src/gallium/frontends/va/postproc.c +++ b/src/gallium/frontends/va/postproc.c @@ -321,7 +321,7 @@ vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *contex VAProcFilterParameterBufferDeinterlacing *deint = buf->data; switch (deint->algorithm) { case VAProcDeinterlacingBob: - if (deint->flags & VA_DEINTERLACING_BOTTOM_FIELD) + if (deint->flags & VA_DEINTERLACING_BOTTOM_FIELD_FIRST) deinterlace = VL_COMPOSITOR_BOB_BOTTOM; else deinterlace = VL_COMPOSITOR_BOB_TOP; @@ -333,7 +333,7 @@ vlVaHandleVAProcPipelineParameterBufferType(vlVaDriver *drv, vlVaContext *contex case VAProcDeinterlacingMotionAdaptive: src = vlVaApplyDeint(drv, context, param, src, - !!(deint->flags & VA_DEINTERLACING_BOTTOM_FIELD)); + !!(deint->flags & VA_DEINTERLACING_BOTTOM_FIELD_FIRST)); break; default: