]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/rockchip: vop2: Enforce AFBC source alignment in plane_check
authorDaniel Stone <daniels@collabora.com>
Mon, 15 Dec 2025 14:09:21 +0000 (15:09 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Thu, 8 Jan 2026 19:00:34 +0000 (20:00 +0100)
commit8cdd4d858d7aaeb583ae2b4e5a0378936b18f0f0
treeced1006fef03886aaf7b9ce7f8be117ec2b03f33
parentdfb673c71fc0039a6495731d0c0fcefa8a97541d
drm/rockchip: vop2: Enforce AFBC source alignment in plane_check

Planes can only source AFBC framebuffers at multiples of 4px wide on
RK3566/RK3568. Instead of clipping on all SoCs when the user asks for an
unaligned source rectangle, reject the configuration in the plane's
atomic check on RK3566/RK3568 only.

Signed-off-by: Daniel Stone <daniels@collabora.com>
[Make RK3566/RK3568 specific, reword message, s/byte/pixel/]
Signed-off-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patch.msgid.link/20251215-vop2-atomic-fixups-v5-5-83463c075a8d@collabora.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c