Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f04f592 authored by Mark Yao's avatar Mark Yao
Browse files

drm/rockchip: vop: fix NV12 video display error



fixup the scale calculation formula on the case
src_height == (dst_height/2).

Signed-off-by: default avatarMark Yao <mark.yao@rock-chips.com>
Reviewed-by: default avatarSandy huang <sandy.huang@rock-chips.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1501494586-6984-1-git-send-email-mark.yao@rock-chips.com
parent da6c9bbf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -282,6 +282,9 @@ static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h,

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

	if (act_height == dst_h)
		return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines;

	return GET_SCL_FT_BILI_DN(act_height, dst_h);
}