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)
commit74a3dba26c606adc29f6ba6484d5cdaaf877cccc
treefc4903b0ce36f9168238dffe19aa0bb5479be0ef
parent70e8a0c71e909d6801ab7b215adc079caec024ba
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