diff options
author | Maxime Ripard <maxime@cerno.tech> | 2022-02-21 10:59:10 +0100 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2022-02-25 17:56:55 +0100 |
commit | 84352ed2b0543aa54117a73ad29c33c7a2b9d299 (patch) | |
tree | 59c388512fca0eb55df16b76a2bd48d50549f509 /drivers/gpu/drm/omapdrm/omap_plane.c | |
parent | drm/nouveau/kms: Remove redundant zpos initialisation (diff) | |
download | linux-84352ed2b0543aa54117a73ad29c33c7a2b9d299.tar.xz linux-84352ed2b0543aa54117a73ad29c33c7a2b9d299.zip |
drm/omap: plane: Remove redundant zpos initialisation
The omap KMS driver will call drm_plane_create_zpos_property() with an
init value of the plane index and the plane type.
Since the initial value wasn't carried over in the state, the driver had
to set it again in omap_plane_reset(). However, the helpers have been
adjusted to set it properly at reset, so this is not needed anymore.
Reviewed-by: Tomi Valkeinen <tomba@kernel.org>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220221095918.18763-15-maxime@cerno.tech
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_plane.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_plane.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c index e67baf9a942c..d96bc929072a 100644 --- a/drivers/gpu/drm/omapdrm/omap_plane.c +++ b/drivers/gpu/drm/omapdrm/omap_plane.c @@ -414,13 +414,6 @@ static void omap_plane_reset(struct drm_plane *plane) return; __drm_atomic_helper_plane_reset(plane, &omap_state->base); - - /* - * Set the zpos default depending on whether we are a primary or overlay - * plane. - */ - plane->state->zpos = plane->type == DRM_PLANE_TYPE_PRIMARY - ? 0 : omap_plane->id; plane->state->color_encoding = DRM_COLOR_YCBCR_BT601; plane->state->color_range = DRM_COLOR_YCBCR_FULL_RANGE; } |