Commit 06133cec authored by Detlev Casanova's avatar Detlev Casanova Committed by Greg Kroah-Hartman
Browse files

drm/rockchip: vop2: Do not divide height twice for YUV



[ Upstream commit e80c219f ]

For the cbcr format, gt2 and gt4 are computed again after src_h has been
divided by vsub.

As src_h as already been divided by 2 before, introduce cbcr_src_h and
cbcr_src_w to keep a copy of those values to be used for cbcr gt2 and
gt4 computation.

This fixes yuv planes being unaligned vertically when down scaling to
1080 pixels from 2160.

Signed-off-by: default avatarDetlev Casanova <detlev.casanova@collabora.com>
Fixes: 604be855 ("drm/rockchip: Add VOP2 driver")
Acked-by: default avatarAndy Yan <andy.yan@rock-chips.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240414182706.655270-1-detlev.casanova@collabora.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 7105c63c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment