From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/drm_blend: allow blend mode property without PREMULTI
Date: Tue, 05 May 2026 08:17:26 +1000 [thread overview]
Message-ID: <review-overall-20260504140630.68707-1-leandro.ribeiro@collabora.com> (raw)
In-Reply-To: <20260504140630.68707-1-leandro.ribeiro@collabora.com>
Overall Series Review
Subject: drm/drm_blend: allow blend mode property without PREMULTI
Author: Leandro Ribeiro <leandro.ribeiro@collabora.com>
Patches: 3
Reviewed: 2026-05-05T08:17:26.131070
---
This is a 2-patch series to relax the DRM blend mode property creation API so that drivers whose hardware only supports COVERAGE (no PREMULTI) can expose blend mode. Patch 1 removes the PREMULTI requirement; patch 2 adds a hard enforcement that any driver exposing alpha (via alpha property or pixel formats with alpha channel) **must** also expose the blend mode property, or `drm_dev_register()` will fail.
The motivation is sound — hardware exists that only does COVERAGE blending, and the current API artificially prevents those drivers from being upstreamed. However, **patch 2 has a serious problem**: the enforcement will break multiple existing in-tree drivers that are currently working and do not call `drm_plane_create_blend_mode_property()`.
**Affected drivers found** (alpha_property set but no blend_mode_property):
- `sun4i/sun8i_ui_layer.c`
- `sun4i/sun8i_vi_layer.c`
- `atmel-hlcdc/atmel_hlcdc_plane.c`
- `stm/ltdc.c`
- `xlnx/zynqmp_kms.c`
- `logicvc/logicvc_layer.c`
None of these use the deprecated `.load` callback, so the enforcement is not bypassed. Additionally, the pixel-format alpha check (`fmt->has_alpha`) will catch even more drivers — virtually any driver that lists ARGB8888 among its supported formats but doesn't set up blend mode. This is an extremely broad net that could break many more drivers beyond the alpha_property ones listed above.
The series needs either: (a) companion patches to fix all affected in-tree drivers before the enforcement is turned on, or (b) a softer enforcement (WARN instead of error-return) with a plan to harden it later.
---
---
Generated by Claude Code Patch Reviewer
prev parent reply other threads:[~2026-05-04 22:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-04 14:06 [PATCH v2 0/2] drm/drm_blend: allow blend mode property without PREMULTI Leandro Ribeiro
2026-05-04 14:06 ` [PATCH v2 1/2] " Leandro Ribeiro
2026-05-04 22:17 ` Claude review: " Claude Code Review Bot
2026-05-04 14:06 ` [PATCH v2 2/2] drm: ensure blend mode supported if alpha exposed Leandro Ribeiro
2026-05-04 22:17 ` Claude review: " Claude Code Review Bot
2026-05-04 22:17 ` Claude Code Review Bot [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=review-overall-20260504140630.68707-1-leandro.ribeiro@collabora.com \
--to=claude-review@example.com \
--cc=dri-devel-reviews@example.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox