]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/rockchip: vop2: Fix the mixer alpha setup for layer 0
authorAndy Yan <andy.yan@rock-chips.com>
Mon, 9 Dec 2024 12:29:16 +0000 (20:29 +0800)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 10 Dec 2024 23:07:33 +0000 (00:07 +0100)
commit6b4dfdcde3573a12b72d2869dabd4ca37ad7e9c7
treee2dc7f0fe4b6bedfbe028dd792f111f4cd03a21e
parent17b4b10a0df1a1421d5fbdc03bad0bd3799bc966
drm/rockchip: vop2: Fix the mixer alpha setup for layer 0

The alpha setup should start from the second layer, the current calculation
starts incorrectly from the first layer, a negative offset will be obtained
in the following formula:

offset = (mixer_id + zpos - 1) * 0x10

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/20241209122943.2781431-7-andyshrk@163.com
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c