]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/rockchip: vop2: Fix the windows switch between different layers
authorAndy Yan <andy.yan@rock-chips.com>
Sat, 14 Dec 2024 08:17:01 +0000 (16:17 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Sat, 14 Dec 2024 23:05:45 +0000 (00:05 +0100)
commit0ca953ac226eaffbe1a795f5e517095a8d494921
treedf7b1d405b81d5310a0a7c593684651cf21f55e9
parent779964556c64cd3d76ddfeb34738ef78020fae84
drm/rockchip: vop2: Fix the windows switch between different layers

Every layer of vop2 should bind a window, and we also need to make
sure that this window is not used by other layer.

0x5 is a reserved layer sel value on rk3568, but it will select
Cluster3 on rk3588, configure unused layers to 0x5  will lead
alpha blending error on rk3588.

When we bind a window from layerM to layerN, we move the old window
on layerN to layerM.

Fixes: 604be85547ce ("drm/rockchip: Add VOP2 driver")
Tested-by: Derek Foreman <derek.foreman@collabora.com>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20241214081719.3330518-3-andyshrk@163.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c