提交 ee2cda7b 编写于 作者: R Raphael Gallais-Pou 提交者: Philippe Cornu

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: NRaphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
Acked-by: NYannick Fertre <yannick.fertre@foss.st.com>
Reviewed-by: NYannick Fertre <yannick.fertre@foss.st.com>
Signed-off-by: NPhilippe Cornu <philippe.cornu@foss.st.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210907151323.5850-1-raphael.gallais-pou@foss.st.com
上级 361da7c3
...@@ -1024,6 +1024,8 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc) ...@@ -1024,6 +1024,8 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc)
return -EINVAL; return -EINVAL;
} }
drm_plane_create_zpos_immutable_property(primary, 0);
ret = drm_crtc_init_with_planes(ddev, crtc, primary, NULL, ret = drm_crtc_init_with_planes(ddev, crtc, primary, NULL,
&ltdc_crtc_funcs, NULL); &ltdc_crtc_funcs, NULL);
if (ret) { if (ret) {
...@@ -1046,6 +1048,7 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc) ...@@ -1046,6 +1048,7 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc)
DRM_ERROR("Can not create overlay plane %d\n", i); DRM_ERROR("Can not create overlay plane %d\n", i);
goto cleanup; goto cleanup;
} }
drm_plane_create_zpos_immutable_property(overlay, i);
} }
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册