vpp: force vd2 using preblend when playing mvc [1/1]
authorBrian Zhu <brian.zhu@amlogic.com>
Fri, 25 Jan 2019 05:27:59 +0000 (13:27 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 25 Jan 2019 09:28:50 +0000 (01:28 -0800)
PD#SWPL-3381

Problem:
vd2 used postblend as default after g12a chip

Solution:
force vd2 using preblend when playing mvc

Verify:
Locally on u212

Change-Id: Ia7fab8ad70ed1e58b7ade241828afab288b94bec
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
drivers/amlogic/media/video_sink/video.c

index 11ac6a5..74694fb 100644 (file)
@@ -6542,7 +6542,9 @@ SET_FILTER:
                        if (is_dolby_vision_on())
                                vpp_misc_set &= ~(VPP_VD2_PREBLEND |
                                        VPP_VD2_POSTBLEND | VPP_PREBLEND_EN);
-                       else if (process_3d_type)
+                       else if (process_3d_type ||
+                               (cur_dispbuf &&
+                               (cur_dispbuf->type & VIDTYPE_MVC)))
                                vpp_misc_set |= VPP_VD2_PREBLEND |
                                        VPP_PREBLEND_EN;
                        else if (!legacy_vpp)