From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm: writeback: Document behaviour for framebuffer size mismatch
Date: Thu, 04 Jun 2026 13:41:03 +1000 [thread overview]
Message-ID: <review-overall-20260601195732.72538-1-derek.foreman@collabora.com> (raw)
In-Reply-To: <20260601195732.72538-1-derek.foreman@collabora.com>
Overall Series Review
Subject: drm: writeback: Document behaviour for framebuffer size mismatch
Author: Derek Foreman <derek.foreman@collabora.com>
Patches: 1
Reviewed: 2026-06-04T13:41:03.189082
---
This is a single documentation-only patch that adds three lines to the KDoc comment for the `WRITEBACK_FB_ID` property in `drm_writeback.c`. It specifies the expected behavior when the writeback framebuffer dimensions don't match the CRTC dimensions: the driver may either fail the commit or scale the content (but not crop).
The patch is reasonable and addresses a genuine gap in the writeback connector specification. The rationale in the commit message is sound — cropping is underspecified without an origin/viewport property, while scaling is well-defined.
**Minor concerns:**
1. The wording "the driver may either fail or scale (not crop)" is clear but could be slightly more precise about *when* the failure occurs — it should be at atomic check time, not silently at commit time. A `TEST_ONLY` commit should be able to discover this.
2. There's no mention of whether the scaling should preserve aspect ratio or stretch. For a UAPI doc, it might be worth stating this is implementation-defined, or that the framebuffer dimensions define the output size (i.e., stretch to fit).
3. The patch does not add any helper validation or enforcement in the core — it's purely documenting what drivers are allowed to do. That's fine for now, but a follow-up adding a core helper (e.g., a flag on `drm_writeback_connector` indicating scaling support) would make this more useful and consistent across drivers.
---
---
Generated by Claude Code Patch Reviewer
next prev parent reply other threads:[~2026-06-04 3:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-01 19:57 [PATCH] drm: writeback: Document behaviour for framebuffer size mismatch Derek Foreman
2026-06-04 3:41 ` Claude Code Review Bot [this message]
2026-06-04 3:41 ` Claude review: " Claude Code Review Bot
-- strict thread matches above, loose matches on Subject: below --
2026-06-02 19:17 [PATCH v2] " Derek Foreman
2026-06-04 2:17 ` Claude review: " Claude Code Review Bot
2026-06-04 2:17 ` Claude Code Review Bot
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-20260601195732.72538-1-derek.foreman@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