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)
committerLuan Yuan <luan.yuan@amlogic.com>
Wed, 13 Mar 2019 12:22:15 +0000 (20:22 +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 202fd6a..b54a51c 100644 (file)
@@ -7377,7 +7377,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)