Skip to contentSkip to conversation

drm/stm: ltdc: create blend mode property

PATCH In review Dario Binacchi 3 participants 4 messages Oct 28 – Dec 1

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/stm: ltdc: create blend mode property

After commit 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed") we get warnings at boot:

stm32-display 48010000.display-controller: [drm] [PLANE:37:plane-0] pixel format with alpha exposed but blend mode not setup. Please fix.

The LTDC blends the pixel formats with alpha by straight alpha, the only mode implemented in the driver. Create the blend mode property with DRM_MODE_BLEND_COVERAGE only.

Fixes 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed")

---

 drivers/gpu/drm/stm/ltdc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/stm/ltdc.c +1 -0
index 5311e0b3e8dc..3b6e680c1c61 100644
@@ -1642,6 +1642,7 @@ static struct drm_plane *ltdc_plane_create(struct drm_device *ddev,
 	drm_plane_helper_add(plane, &ltdc_plane_helper_funcs);
 
 	drm_plane_create_alpha_property(plane);
+	drm_plane_create_blend_mode_property(plane, BIT(DRM_MODE_BLEND_COVERAGE));
 
 	drm_dbg_driver(plane->dev, "plane:%d created\n", plane->base.id);
 

---
base-commit: 65ba8f34ec886ec72b2c07ddc8cf3d815c32869d
branch: stm32-ltdc-blend-mode

Signature · 1 line
2.43.0
#1 lore raw

Hi Yannick, Raphael, Philippe,

Gentle ping on this patch.

The warning has been there since v7.3 and is still present in v7.4-rc3 and in next-20261119.

Thanks and regards,
Dario

Quoted 37 lines · Dario Binacchi

After commit 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed") we get warnings at boot:

stm32-display 48010000.display-controller: [drm] [PLANE:37:plane-0] pixel format with alpha exposed but blend mode not setup. Please fix.

The LTDC blends the pixel formats with alpha by straight alpha, the only mode implemented in the driver. Create the blend mode property with DRM_MODE_BLEND_COVERAGE only.

Fixes 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed")

---

 drivers/gpu/drm/stm/ltdc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/stm/ltdc.c +1 -1
index 5311e0b3e8dc..3b6e680c1c61 100644
@@ -1642,6 +1642,7 @@ static struct drm_plane *ltdc_plane_create(struct drm_device *ddev,
        drm_plane_helper_add(plane, &ltdc_plane_helper_funcs);
 
        drm_plane_create_alpha_property(plane);
+       drm_plane_create_blend_mode_property(plane, BIT(DRM_MODE_BLEND_COVERAGE));
 
        drm_dbg_driver(plane->dev, "plane:%d created\n", plane->base.id);
 
---

base-commit: 65ba8f34ec886ec72b2c07ddc8cf3d815c32869d
branch: stm32-ltdc-blend-mode

--
2.43.0

Signature · 9 lines
Dario Binacchi
Senior Embedded Software Engineer
M. +39 328 0625246
[email protected]
―――――――――――――――
Amarula Solutions SRL
 Via Felice Cavallotti 25D, 41012 Carpi, MO, IT
[email protected]
www.amarulasolutions.com
maintainer Reviewed-by on v1 1/1
#2 lore raw
In reply to Dario Binacchi
Quoted 5 lines · Dario Binacchi

After commit 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed") we get warnings at boot:

stm32-display 48010000.display-controller: [drm] [PLANE:37:plane-0] pixel format with alpha exposed but blend mode not setup. Please fix.

Quoted 9 lines

The LTDC blends the pixel formats with alpha by straight alpha, the only mode implemented in the driver. Create the blend mode property with DRM_MODE_BLEND_COVERAGE only.

Fixes 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed")

---

Hi Dario,

Best regards,
Raphaël

maintainer Acked-by Tested-by
#3 lore raw

Hi Dario,

thanks for this patch.

Best regards

Quoted 21 lines · Raphael Gallais-Pou
Quoted 5 lines · Dario Binacchi

After commit 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed") we get warnings at boot:

stm32-display 48010000.display-controller: [drm] [PLANE:37:plane-0] pixel format with alpha exposed but blend mode not setup. Please fix.

Quoted 9 lines

The LTDC blends the pixel formats with alpha by straight alpha, the only mode implemented in the driver. Create the blend mode property with DRM_MODE_BLEND_COVERAGE only.

Fixes 860e748bddcc ("drm: ensure blend mode supported if pixel format with alpha exposed")

---

Hi Dario,

Best regards,
Raphaël