Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Raphael Gallais-Pou and committed by
Philippe Cornu
ee2cda7b 361da7c3

+3
+3
drivers/gpu/drm/stm/ltdc.c
··· 1024 1024 return -EINVAL; 1025 1025 } 1026 1026 1027 + drm_plane_create_zpos_immutable_property(primary, 0); 1028 + 1027 1029 ret = drm_crtc_init_with_planes(ddev, crtc, primary, NULL, 1028 1030 &ltdc_crtc_funcs, NULL); 1029 1031 if (ret) { ··· 1048 1046 DRM_ERROR("Can not create overlay plane %d\n", i); 1049 1047 goto cleanup; 1050 1048 } 1049 + drm_plane_create_zpos_immutable_property(overlay, i); 1051 1050 } 1052 1051 1053 1052 return 0;