drm: rcar-du: Enable alpha property on primary planes
authorKieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Wed, 19 Sep 2018 15:56:59 +0000 (16:56 +0100)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 23 Nov 2018 11:51:22 +0000 (13:51 +0200)
The hardware supports alpha on all planes, and using it on the primary
plane can be useful. Don't restrict the alpha property to overlay
planes.

Signed-off-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_plane.c

index 9e07758a755c254ee8fc200037196237ee841948..39d5ae3fdf72b1de5ffa079751b378a080a2087d 100644 (file)
@@ -783,13 +783,14 @@ int rcar_du_planes_init(struct rcar_du_group *rgrp)
                drm_plane_helper_add(&plane->plane,
                                     &rcar_du_plane_helper_funcs);
 
+               drm_plane_create_alpha_property(&plane->plane);
+
                if (type == DRM_PLANE_TYPE_PRIMARY)
                        continue;
 
                drm_object_attach_property(&plane->plane.base,
                                           rcdu->props.colorkey,
                                           RCAR_DU_COLORKEY_NONE);
-               drm_plane_create_alpha_property(&plane->plane);
                drm_plane_create_zpos_property(&plane->plane, 1, 1, 7);
        }