projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64d7756
)
drm/rockchip: vop: fix NV12 video display error
author
Mark yao
<mark.yao@rock-chips.com>
Mon, 31 Jul 2017 09:49:46 +0000
(17:49 +0800)
committer
Mark Yao
<mark.yao@rock-chips.com>
Fri, 4 Aug 2017 08:09:39 +0000
(16:09 +0800)
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
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/rockchip/rockchip_drm_vop.h
b/drivers/gpu/drm/rockchip/rockchip_drm_vop.h
index
af1091f
..
56bbd2e
100644
(file)
--- a/
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
+++ b/
drivers/gpu/drm/rockchip/rockchip_drm_vop.h
@@
-299,6
+299,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);
}