Skip to content

drm/drm_blend: allow blend mode property without PREMULTI

Leandro Ribeiro dri-devel linux-renesas-soc linux-tegra lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 6 repliesIn review
  2. v32 patches 4 repliesSuperseded
  3. v22 patches 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch2 repliesSuperseded

Changes in v4 from the cover letter

- Trigger warnings instead of errors when pixel format with alpha is exposed but blend mode is not setup.
- Require blend mode only when plane exposes pixel formats with alpha, not when it supports the alpha property.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/drm_blend: allow blend mode property without PREMULTIdrivers/gpu/drm/drm_blend.c+14 -60 replies
2/2drm: ensure blend mode supported if pixel format with alpha exposeddrivers/gpu/drm/drm_mode_config.c+21 -04 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPekka PaalanenDaniel Stone
SeriesA-b R-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] drm/drm_blend: allow blend mode property without PREMULTI

Some hardware only supports the COVERAGE blend mode and lacks PREMULTI support entirely. DRM currently requires that PREMULTI is present when creating a blend mode property, which prevents such drivers from being properly upstreamed.

This series removes this restriction and allows drivers to create a blend mode property without PREMULTI.

On Weston (userspace), we are working [1] towards adding support for this kind of hardware.

[1] https://gitlab.freedesktop.org/wayland/weston/-/merge_requests/2046

v4:
- Trigger warnings instead of errors when pixel format with alpha is exposed but blend mode is not setup.
- Require blend mode only when plane exposes pixel formats with alpha, not when it supports the alpha property.

v3:
- Changed where we enforce drivers to expose blend mode for planes that support the alpha property or pixel formats with alpha.
- Fixed missing check to forbid calling drm_plane_create_blend_mode_property() with a zero bitmask of supported modes.

v2:
- Force drivers to expose blend mode if plane supports alpha property or pixel format with alpha.

Leandro Ribeiro (2):
drm/drm_blend: allow blend mode property without PREMULTI
drm: ensure blend mode supported if pixel format with alpha exposed

 drivers/gpu/drm/drm_blend.c       | 20 ++++++++++++++------
 drivers/gpu/drm/drm_mode_config.c | 21 +++++++++++++++++++++
 2 files changed, 35 insertions(+), 6 deletions(-)
Signature · 1 line
2.54.0