]> git.baikalelectronics.ru Git - kernel.git/commit
drm/imx: ipuv3-plane: add zpos property
authorPhilipp Zabel <p.zabel@pengutronix.de>
Wed, 10 Jan 2018 15:20:01 +0000 (16:20 +0100)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 22 Feb 2019 11:17:54 +0000 (12:17 +0100)
commitdd2be933a35ae5d3c3c58691af48003270db3820
treefc4903b0ce36f9168238dffe19aa0bb5479be0ef
parentc13f302d894bb059337c3d5117b53849816fe032
drm/imx: ipuv3-plane: add zpos property

Add a zpos property to planes. Call drm_atomic_helper_check() instead of
calling drm_atomic_helper_check_modeset() and drm_atomic_check_planes()
manually. This effectively adds a call to drm_atomic_normalize_zpos()
before checking planes. Reorder atomic update to allow changing plane
zpos without modeset.

Note that the initial zpos is set in ipu_plane_state_reset(). The
initial value set in ipu_plane_init() is just for show. The zpos
parameter of drm_plane_create_zpos_property() is ignored because
the newly created plane do not have state yet.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Tested-by: Marius Vlad <marius.vlad@collabora.com>
drivers/gpu/drm/imx/imx-drm-core.c
drivers/gpu/drm/imx/ipuv3-plane.c