Signed-off-by: Gwenole Beauchesne <gwenole.beauche...@intel.com>
---
 src/i965_device_info.c     | 1 +
 src/i965_post_processing.c | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/i965_device_info.c b/src/i965_device_info.c
index a415587..8d9db88 100644
--- a/src/i965_device_info.c
+++ b/src/i965_device_info.c
@@ -152,6 +152,7 @@ static struct hw_codec_info ivb_hw_codec_info = {
     .has_accelerated_putimage = 1,
     .has_tiled_surface = 1,
     .has_di_motion_adptive = 1,
+    .has_di_motion_compensated = 1,
 
     .num_filters = 2,
     .filters = {
diff --git a/src/i965_post_processing.c b/src/i965_post_processing.c
index fbcafa0..a296cd5 100755
--- a/src/i965_post_processing.c
+++ b/src/i965_post_processing.c
@@ -1210,6 +1210,7 @@ pp_dndi_context_init_surface_params(struct 
pp_dndi_context *dndi_ctx,
             dndi_ctx->is_first_frame = 1;
             break;
         case VAProcDeinterlacingMotionAdaptive:
+        case VAProcDeinterlacingMotionCompensated:
             fs = &dndi_ctx->frame_store[DNDI_FRAME_IN_CURRENT];
             if (fs->surface_id == VA_INVALID_ID)
                 dndi_ctx->is_first_frame = 1;
@@ -3900,7 +3901,8 @@ gen7_pp_nv12_dndi_initialize(VADriverContextP ctx, struct 
i965_post_processing_c
     sampler_dndi[index].dw6.dndi_stream_id = 1;
     sampler_dndi[index].dw6.dndi_first_frame = dndi_ctx->is_first_frame;
     sampler_dndi[index].dw6.progressive_dn = 0;
-    sampler_dndi[index].dw6.mcdi_enable = 0;
+    sampler_dndi[index].dw6.mcdi_enable =
+        (deint_params->algorithm == VAProcDeinterlacingMotionCompensated);
     sampler_dndi[index].dw6.fmd_tear_threshold = 2;
     sampler_dndi[index].dw6.cat_th1 = 0;
     sampler_dndi[index].dw6.fmd2_vertical_difference_threshold = 100;
-- 
1.9.1

_______________________________________________
Libva mailing list
Libva@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libva

Reply via email to