drm/rockchip: vop2: Fix Cluster2/3 MIX offset

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ibc9b82b7c1c531b7ac062a8ead6f9e162f6fa0fb
This commit is contained in:
Andy Yan
2021-11-13 20:03:04 +08:00
committed by Tao Huang
parent b8a6f5f211
commit fd6591c08d

View File

@@ -5948,6 +5948,11 @@ static void vop2_setup_cluster_alpha(struct vop2 *vop2, struct vop2_cluster *clu
bool premulti_en = false;
bool swap = false;
if (cluster->main->phys_id == ROCKCHIP_VOP2_CLUSTER2)
offset = 0x20;
else if (cluster->main->phys_id == ROCKCHIP_VOP2_CLUSTER3)
offset = 0x30;
if (!sub_win) {
/* At one win mode, win0 is dst/bottom win, and win1 is a all zero src/top win */
plane = &main_win->base;