diff options
author | Detlev Casanova <detlev.casanova@collabora.com> | 2024-04-14 21:27:06 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-30 10:49:41 +0300 |
commit | 06133cececb89229e51d8cc33ff8e08e818de2b1 (patch) | |
tree | 09f4423dd04024f939bf1b287c29b803b618d1b8 /include/soc | |
parent | 7105c63c32704c9d0d3144a99897166e61c87cb0 (diff) | |
download | linux-06133cececb89229e51d8cc33ff8e08e818de2b1.tar.xz |
drm/rockchip: vop2: Do not divide height twice for YUV
[ Upstream commit e80c219f52861e756181d7f88b0d341116daac2b ]
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: Detlev Casanova <detlev.casanova@collabora.com>
Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver")
Acked-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20240414182706.655270-1-detlev.casanova@collabora.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/soc')
0 files changed, 0 insertions, 0 deletions