di: fix 4K black screen issue
authorJihong Sui <jihong.sui@amlogic.com>
Thu, 4 Oct 2018 04:42:18 +0000 (12:42 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 10 Oct 2018 05:32:18 +0000 (22:32 -0700)
PD#162632: di: fix 4K black screen issue

1. this is a patch for afbc;
2. close afbc for di temporary;

Change-Id: Ic70cb526dab431ef7caf827c322efe207bb7991f
Signed-off-by: Jihong Sui <jihong.sui@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace.c

index 7547b70..bd94f3a 100644 (file)
@@ -5973,9 +5973,15 @@ static bool need_bypass(struct vframe_s *vf)
 
        if (vf->type & VIDTYPE_PIC)
                return true;
-#if 0
+#if 1
        if (vf->type & VIDTYPE_COMPRESS)
                return true;
+#else
+       if (vf->type & VIDTYPE_COMPRESS) {
+               if ((vf->compHeight > (default_height + 8))
+                       || (vf->compWidth > default_width))
+                       return true;
+       }
 #endif
        if ((vf->width > default_width) ||
                        (vf->height > (default_height + 8)))