mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
drm/rockchip: vop2: Only attach color_key prop when vop2 win support it
Only some specific win support the color key feature. So for those win that don't support it, don't expose the color key prop to the user. Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com> Change-Id: I75f0ca8c40a3bfa8e45b8a06bdb9576643296386
This commit is contained in:
@@ -12324,7 +12324,8 @@ static int vop2_plane_init(struct vop2 *vop2, struct vop2_win *win, unsigned lon
|
||||
drm_object_attach_property(&win->base.base, win->output_width_prop, 0);
|
||||
drm_object_attach_property(&win->base.base, win->output_height_prop, 0);
|
||||
drm_object_attach_property(&win->base.base, win->scale_prop, 0);
|
||||
drm_object_attach_property(&win->base.base, win->color_key_prop, 0);
|
||||
if (win->regs->color_key.mask)
|
||||
drm_object_attach_property(&win->base.base, win->color_key_prop, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user