diff options
author | Mark yao <mark.yao@rock-chips.com> | 2017-07-31 05:49:46 -0400 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2017-08-04 03:39:10 -0400 |
commit | 6f04f5925ce763e07cb405d1fbe97a53b6c026a3 (patch) | |
tree | 58efd6bc6002c0c4bc99772db69a16d8f1426a00 | |
parent | da6c9bbf418dcb0f8be261f4353400fa959b1e92 (diff) |
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
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.h b/drivers/gpu/drm/rockchip/rockchip_drm_vop.h index 9979fd0c2282..27eefbfcf3d0 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_vop.h +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.h | |||
@@ -282,6 +282,9 @@ static inline uint16_t scl_get_bili_dn_vskip(int src_h, int dst_h, | |||
282 | 282 | ||
283 | act_height = (src_h + vskiplines - 1) / vskiplines; | 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 | return GET_SCL_FT_BILI_DN(act_height, dst_h); | 288 | return GET_SCL_FT_BILI_DN(act_height, dst_h); |
286 | } | 289 | } |
287 | 290 | ||