OpenCloudOS-Kernel/drivers/gpu/drm/rockchip
Detlev Casanova b4c5086669 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: 604be85547 ("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-06-12 11:12:05 +02:00
..
Kconfig drm/gem: rename GEM CMA helpers to GEM DMA helpers 2022-08-03 18:31:49 +02:00
Makefile drm/rockchip: Add VOP2 driver 2022-05-04 14:05:47 +02:00
analogix_dp-rockchip.c drm: Explicitly include correct DT includes 2023-07-21 09:12:43 +02:00
cdn-dp-core.c drm/rockchip: cdn-dp: Fix some error handling paths in cdn_dp_probe() 2023-11-20 11:59:12 +01:00
cdn-dp-core.h drm/rockchip: Embed drm_encoder into rockchip_decoder 2022-05-03 11:23:47 +02:00
cdn-dp-reg.c
cdn-dp-reg.h
dw-mipi-dsi-rockchip.c drm: Explicitly include correct DT includes 2023-07-21 09:12:43 +02:00
dw_hdmi-rockchip.c drm/rockchip: Convert to platform remove callback returning void 2023-06-08 09:04:12 -07:00
inno_hdmi.c drm/rockchip: inno_hdmi: Fix video timing 2024-03-26 18:19:42 -04:00
inno_hdmi.h
rk3066_hdmi.c drm-misc-next for v6.6: 2023-07-17 15:37:57 +02:00
rk3066_hdmi.h
rockchip_drm_drv.c drm: Explicitly include correct DT includes 2023-07-21 09:12:43 +02:00
rockchip_drm_drv.h drm/fb-helper: Remove unnecessary include statements 2022-11-05 17:12:04 +01:00
rockchip_drm_fb.c drm/rockchip: Don't set struct drm_driver.output_poll_changed 2022-11-05 17:05:53 +01:00
rockchip_drm_fb.h drm: rockchip: remove rockchip_drm_framebuffer_init() function 2022-10-29 18:31:09 +02:00
rockchip_drm_gem.c drm/rockchip: Fix type promotion bug in rockchip_gem_iommu_map() 2023-11-20 11:59:12 +01:00
rockchip_drm_gem.h dma-buf-map: Rename to iosys-map 2022-02-07 16:35:35 -08:00
rockchip_drm_vop.c drm/rockchip: vop: Fix color for RGB888/BGR888 format on VOP full 2023-12-03 07:33:03 +01:00
rockchip_drm_vop.h drm/rockchip: vop: limit maximum resolution to hardware capabilities 2023-03-09 01:14:24 +01:00
rockchip_drm_vop2.c drm/rockchip: vop2: Do not divide height twice for YUV 2024-06-12 11:12:05 +02:00
rockchip_drm_vop2.h drm/rockchip: vop: limit maximum resolution to hardware capabilities 2023-03-09 01:14:24 +01:00
rockchip_lvds.c drm/rockchip: lvds: do not print scary message when probing defer 2024-03-26 18:19:42 -04:00
rockchip_lvds.h
rockchip_rgb.c drm/rockchip: rgb: add video_port parameter to init function 2023-02-05 15:21:36 +01:00
rockchip_rgb.h drm/rockchip: rgb: add video_port parameter to init function 2023-02-05 15:21:36 +01:00
rockchip_vop2_reg.c drm/rockchip: Convert to platform remove callback returning void 2023-06-08 09:04:12 -07:00
rockchip_vop_reg.c drm/rockchip: Convert to platform remove callback returning void 2023-06-08 09:04:12 -07:00
rockchip_vop_reg.h drm/rockchip: define gamma registers for RK3399 2022-09-15 15:09:10 +02:00