]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit36faf256d0e87ff17a9033ca27ab4625912d7975
tree74599e6aa0c66d535ef533c4acedf28e88eab5f2
parent28324b9c2889fd999376f1cabd59e5b6d5ad8532
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