PD#SWPL-4075
Problem:
dst data is not normal by using strechblit function
such as 1920x1080 --> 640x360
Solution:
add bit width restriction for
horizontal scaler initial phase
Verify:
verified on g12b-w400
Change-Id: Ibcd85cc08f49254e90100beb952e711736531134
Signed-off-by: Jian Cao <jian.cao@amlogic.com>
ge2d_reg_write(GE2D_HSC_INI_CTRL,
(cfg->hsc_rpt_p0_num << 29) |
(cfg->hsc_adv_num << 24) |
- (cfg->hsc_ini_phase << 0)
+ ((cfg->hsc_ini_phase & 0xffffff) << 0)
);
#else
ge2d_reg_write(GE2D_HSC_ADV_CTRL,
);
ge2d_reg_write(GE2D_HSC_INI_CTRL,
(cfg->hsc_rpt_p0_num << 29) |
- (cfg->hsc_ini_phase << 0)
+ ((cfg->hsc_ini_phase & 0xffffff) << 0)
);
#endif