Detlev Casanova 06133cecec 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>
2024-05-30 09:49:41 +02:00
..
2024-01-12 11:32:19 -08:00
2024-05-17 12:14:26 +02:00
2024-05-30 09:49:02 +02:00
2024-02-16 18:51:00 -05:00
2024-01-10 08:45:22 -08:00
2024-01-18 11:37:24 -08:00
2024-01-18 11:37:24 -08:00
2024-01-09 16:32:11 -08:00
2024-05-17 12:14:50 +02:00
2024-01-18 11:37:24 -08:00
2024-05-30 09:49:24 +02:00
2024-05-30 09:49:34 +02:00
2024-01-18 16:44:03 -08:00
2024-01-17 14:37:40 -08:00
2024-05-30 09:49:24 +02:00
2024-01-11 11:31:46 -08:00
2024-03-26 18:17:35 -04:00
2024-01-12 12:38:37 +01:00