drm: plane: Verify that no or all planes have a zpos property
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 4 Apr 2020 17:43:01 +0000 (20:43 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Wed, 13 May 2020 23:10:52 +0000 (02:10 +0300)
commit4dc55525b09514737bb17eb437b2f4d3c6740d8a
tree74599e6aa0c66d535ef533c4acedf28e88eab5f2
parent07de3d31f15fdc51c3b9c30e347573499cf08aeb
drm: plane: Verify that no or all planes have a zpos property

The zpos property is used by userspace to sort the order of planes.
While the property is not mandatory for drivers to implement, mixing
planes with and without zpos confuses userspace, and shall not be
allowed. Clarify this in the documentation and warn at runtime if the
drivers mixes planes with and without zpos properties.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_blend.c
drivers/gpu/drm/drm_plane.c