mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 10:31:46 +09:00
drm/rockchip: vop2: Add unique share id for Cluster window
This make Android hwc happy. Change-Id: I1b83d512dcd553b2f98e52b808628f71657a1516 Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
This commit is contained in:
@@ -3597,6 +3597,9 @@ static int vop2_plane_init(struct vop2 *vop2, struct vop2_win *win, unsigned lon
|
||||
drm_object_attach_property(&win->base.base, private->color_space_prop, 0);
|
||||
drm_object_attach_property(&win->base.base, private->async_commit_prop, 0);
|
||||
|
||||
if (win->feature & (WIN_FEATURE_CLUSTER_SUB | WIN_FEATURE_CLUSTER_MAIN))
|
||||
drm_object_attach_property(&win->base.base, private->share_id_prop, win->plane_id);
|
||||
|
||||
if (win->parent)
|
||||
drm_object_attach_property(&win->base.base, private->share_id_prop,
|
||||
win->parent->base.base.id);
|
||||
@@ -3805,9 +3808,6 @@ static int vop2_win_init(struct vop2 *vop2)
|
||||
win->zpos = i;
|
||||
win->vop2 = vop2;
|
||||
|
||||
if (win->feature & WIN_FEATURE_CLUSTER_SUB)
|
||||
win->parent = &vop2->win[num_wins - 1];
|
||||
|
||||
num_wins++;
|
||||
|
||||
if (!vop2->support_multi_area)
|
||||
|
||||
Reference in New Issue
Block a user