aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/frontends/va
diff options
context:
space:
mode:
authorThong Thai <[email protected]>2020-05-21 19:40:13 -0400
committerMarge Bot <[email protected]>2020-05-22 18:23:53 +0000
commit78786a219ea2322af09576472dcc2d6d01cb9060 (patch)
tree0084d7975cad7ff9ce98a9f3ff72ccacd99c69ee /src/gallium/frontends/va
parent569ca93751d2bebbfbd3cf673c8da447b1f2f295 (diff)
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 <[email protected]> Reviewed-by: Leo Liu <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5157>
Diffstat (limited to 'src/gallium/frontends/va')
-rw-r--r--src/gallium/frontends/va/postproc.c4
1 files changed, 2 insertions, 2 deletions
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: