Skip to content

Commit ee2cda7

Browse files
rgallaispouPhilippe Cornu
authored andcommitted
drm/stm: ltdc: attach immutable zpos property to planes
Defines plane ordering by hard-coding an immutable Z position from the first plane, used as primary layer, to the next ones as overlay in order of instantiation. This zpos is only an information as it is not possible to modify it, blending operations are still applied from the top to the bottom layer. This patch helps to remove a warning message from the Android Hardware Composer. Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com> Acked-by: Yannick Fertre <yannick.fertre@foss.st.com> Reviewed-by: Yannick Fertre <yannick.fertre@foss.st.com> Signed-off-by: Philippe Cornu <philippe.cornu@foss.st.com> Link: https://patchwork.freedesktop.org/patch/msgid/20210907151323.5850-1-raphael.gallais-pou@foss.st.com
1 parent 361da7c commit ee2cda7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎drivers/gpu/drm/stm/ltdc.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1024,6 +1024,8 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc)
10241024
return -EINVAL;
10251025
}
10261026

1027+
drm_plane_create_zpos_immutable_property(primary, 0);
1028+
10271029
ret = drm_crtc_init_with_planes(ddev, crtc, primary, NULL,
10281030
&ltdc_crtc_funcs, NULL);
10291031
if (ret) {
@@ -1046,6 +1048,7 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc)
10461048
DRM_ERROR("Can not create overlay plane %d\n", i);
10471049
goto cleanup;
10481050
}
1051+
drm_plane_create_zpos_immutable_property(overlay, i);
10491052
}
10501053

10511054
return 0;

0 commit comments

Comments
 (0)