mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
ge2d: fix strechblit issue for GE2D [1/2]
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>
This commit is contained in:
@@ -977,7 +977,7 @@ void ge2d_set_cmd(struct ge2d_cmd_s *cfg)
|
||||
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,
|
||||
@@ -986,7 +986,7 @@ void ge2d_set_cmd(struct ge2d_cmd_s *cfg)
|
||||
);
|
||||
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user