di: add protection for odd width

PD#163274: di: enable protection for odd width

enable odd protection patch mask by g12a bringup

Change-Id: I74793acc664981c23c3bbf2f8e892c8b4c8d8b84
Signed-off-by: kele bai <kele.bai@amlogic.com>
This commit is contained in:
kele bai
2018-04-09 10:36:12 +08:00
committed by Yixun Lan
parent 618d9ba48e
commit d4ca0fee7e

View File

@@ -3281,12 +3281,10 @@ jiffies_to_msecs(jiffies_64 - vframe->ready_jiffies64));
is_meson_gxl_cpu() ||
is_meson_gxm_cpu());
width_roundup = bit10_pack_patch ? 16 : width_roundup;
#if 0 //test for even width&height
if (di_force_bit_mode == 10)
force_width = roundup(vframe->width, width_roundup);
else
force_width = 0;
#endif
di_pre_stru.source_trans_fmt = vframe->trans_fmt;
di_pre_stru.left_right = di_pre_stru.left_right ? 0 : 1;
di_pre_stru.invert_flag =