[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <6ebc2b5f-5962-9d23-894d-873c51c79388@rock-chips.com>
Date: Fri, 4 Aug 2017 08:56:21 +0800
From: Sandy Huang <sandy.huang@...k-chips.com>
To: Mark Yao <mark.yao@...k-chips.com>,
David Airlie <airlied@...ux.ie>,
Heiko Stuebner <heiko@...ech.de>
Cc: linux-rockchip@...ts.infradead.org,
linux-arm-kernel@...ts.infradead.org,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/6] drm/rockchip: vop: fix NV12 video display error
Hi mark,
在 2017/7/31 17:49, Mark Yao 写道:
> fixup the scale calculation formula on the case
> src_height == (dst_height/2).
>
> Signed-off-by: Mark Yao <mark.yao@...k-chips.com>
> ---
> drivers/gpu/drm/rockchip/rockchip_drm_vop.h | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.h b/drivers/gpu/drm/rockchip/rockchip_drm_vop.h
> index af1091f..56bbd2e 100644
> --- 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);
> }
>
>
Reviewed-by: Sandy huang <sandy.huang@...k-chips.com>
Powered by blists - more mailing lists