Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/rockchip: vop: fix NV12 video display error

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

Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
Reviewed-by: Sandy huang <sandy.huang@rock-chips.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1501494586-6984-1-git-send-email-mark.yao@rock-chips.com

Mark yao 6f04f592 da6c9bbf

+3
+3
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
··· 282 282 283 283 act_height = (src_h + vskiplines - 1) / vskiplines; 284 284 285 + if (act_height == dst_h) 286 + return GET_SCL_FT_BILI_DN(src_h, dst_h) / vskiplines; 287 + 285 288 return GET_SCL_FT_BILI_DN(act_height, dst_h); 286 289 } 287 290