[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ab16c454-df90-d9b1-4be1-9460baaef876@foss.st.com>
Date: Tue, 7 Sep 2021 08:55:32 +0200
From: yannick Fertre <yannick.fertre@...s.st.com>
To: Raphael GALLAIS-POU - foss <raphael.gallais-pou@...s.st.com>,
"Philippe CORNU - foss" <philippe.cornu@...s.st.com>,
Benjamin Gaignard <benjamin.gaignard@...aro.org>
CC: David Airlie <airlied@...ux.ie>, Daniel Vetter <daniel@...ll.ch>,
"Maxime Coquelin" <mcoquelin.stm32@...il.com>,
Alexandre TORGUE - foss <alexandre.torgue@...s.st.com>,
"dri-devel@...ts.freedesktop.org" <dri-devel@...ts.freedesktop.org>,
"linux-stm32@...md-mailman.stormreply.com"
<linux-stm32@...md-mailman.stormreply.com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Raphael GALLAIS-POU <raphael.gallais-pou@...com>
Subject: Re: [PATCH] drm/stm: ltdc: attach immutable zpos property to planes
Hi Raphael,
thanks for the patch.
Acked-by: Yannick Fertre <yannick.fertre@...s.st.com>
Reviewed-by: Yannick Fertre <yannick.fertre@...s.st.com>
On 9/2/21 5:30 PM, Raphael GALLAIS-POU - foss wrote:
> 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@...s.st.com>
> ---
> drivers/gpu/drm/stm/ltdc.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/gpu/drm/stm/ltdc.c b/drivers/gpu/drm/stm/ltdc.c
> index 195de30eb90c..bd603ef5e935 100644
> --- a/drivers/gpu/drm/stm/ltdc.c
> +++ b/drivers/gpu/drm/stm/ltdc.c
> @@ -1024,6 +1024,8 @@ static int ltdc_crtc_init(struct drm_device *ddev, struct drm_crtc *crtc)
> return -EINVAL;
> }
>
> + drm_plane_create_zpos_immutable_property(primary, 0);
> +
> ret = drm_crtc_init_with_planes(ddev, crtc, primary, NULL,
> <dc_crtc_funcs, NULL);
> if (ret) {
> @@ -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);
> goto cleanup;
> }
> + drm_plane_create_zpos_immutable_property(overlay, i);
> }
>
> return 0;
>
Powered by blists - more mailing lists