Skip to content

Commit 17204ec

Browse files
Mark Yaocolahuang41
authored andcommitted
drm/rockchip: vop: fix NV12 video display error
fixup the scale calculation formula on the case src_height == (dst_height/2). Change-Id: I620a4646232c016ff1547b5b6469ed2eedeacfed Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
1 parent 8b3d260 commit 17204ec

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/gpu/drm/rockchip/rockchip_drm_vop.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,9 @@ static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h,
414414

415415
act_height = (src_h + vskiplines - 1) / vskiplines;
416416

417+
if (act_height == dst_h)
418+
return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines;
419+
417420
return GET_SCL_FT_BILI_DN(act_height, dst_h);
418421
}
419422

0 commit comments

Comments
 (0)