]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/rockchip: vop2: Add uv swap for cluster window
authorAndy Yan <andy.yan@rock-chips.com>
Mon, 3 Mar 2025 03:44:17 +0000 (11:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:42:03 +0000 (14:42 +0200)
commit9459abd7701077b17e6f7f3d6cac7fb1fddc6095
tree269ab180ef92c7f2c0f8ac6c72fe902ca14ee8e3
parent9778a918272726fc4590a2f96abc3646fcb0daf7
drm/rockchip: vop2: Add uv swap for cluster window

[ Upstream commit e7aae9f6d762139f8d2b86db03793ae0ab3dd802 ]

The Cluster windows of upcoming VOP on rk3576 also support
linear YUV support, we need to set uv swap bit for it.

As the VOP2_WIN_UV_SWA register defined on rk3568/rk3588 is
0xffffffff, so this register will not be touched on these
two platforms.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Tested-by: Michael Riesch <michael.riesch@wolfvision.net> # on RK3568
Tested-by: Detlev Casanova <detlev.casanova@collabora.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20250303034436.192400-4-andyshrk@163.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c