public inbox for drm-ai-reviews@public-inbox.freedesktop.org
 help / color / mirror / Atom feed
From: Claude Code Review Bot <claude-review@example.com>
To: dri-devel-reviews@example.com
Subject: Claude review: drm/colorop: make lut(1/3)d_interpolation props correctly behave as mutable
Date: Thu, 04 Jun 2026 12:16:44 +1000	[thread overview]
Message-ID: <review-patch2-20260602215743.914265-3-mwen@igalia.com> (raw)
In-Reply-To: <20260602215743.914265-3-mwen@igalia.com>

Patch Review

**Author:** Melissa Wen

This is the key data-model fix. It moves `lut1d_interpolation` and `lut3d_interpolation` from `struct drm_colorop` (the immutable base object) to `struct drm_colorop_state` (the per-atomic-commit mutable state).

**Changes reviewed:**

- **`include/drm/drm_colorop.h`**: Fields move from `drm_colorop` to `drm_colorop_state`. Clean move, correct types preserved.

- **`drm_atomic_uapi.c`**: `drm_atomic_colorop_set_property()` and `drm_atomic_colorop_get_property()` now read/write `state->lut1d_interpolation` / `state->lut3d_interpolation` instead of `colorop->lut1d_interpolation` / `colorop->lut3d_interpolation`. Correct.

- **`drm_atomic.c` (`drm_atomic_colorop_print_state`)**: Debug printing now reads from `state->` instead of `colorop->`. Correct.

- **`drm_colorop.c`**: The `__drm_colorop_state_reset()` function (called `__drm_colorop_state_init` in the mbox diff context lines — presumably renamed in the base tree) now initializes the interpolation fields from the property defaults via `drm_object_property_get_default_value()`. This follows the existing pattern for `curve_1d_type`. The `colorop->lut1d_interpolation = interpolation` assignments in `drm_plane_colorop_curve_1d_lut_init()` and `drm_plane_colorop_3dlut_init()` are correctly removed since the field no longer exists on `drm_colorop`.

**Potential concern:** The interpolation fields are unconditionally present on every `drm_colorop_state`, even for colorop types that don't use them (e.g., CTM_3X4, MULTIPLIER). This wastes a few bytes per state object but is harmless and consistent with how other fields like `data` are handled.

**Verdict:** Correct. No issues.

---

---
Generated by Claude Code Patch Reviewer

  reply	other threads:[~2026-06-04  2:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02 21:53 [PATCH v8 0/4] drm/atomic: track individual colorop updates Melissa Wen
2026-06-02 21:53 ` [PATCH v8 1/4] drm/colorop: Remove read-only comments from interpolation fields Melissa Wen
2026-06-04  2:16   ` Claude review: " Claude Code Review Bot
2026-06-02 21:53 ` [PATCH v8 2/4] drm/colorop: make lut(1/3)d_interpolation props correctly behave as mutable Melissa Wen
2026-06-04  2:16   ` Claude Code Review Bot [this message]
2026-06-02 21:53 ` [PATCH v8 3/4] drm/atomic: track individual colorop updates Melissa Wen
2026-06-04  2:16   ` Claude review: " Claude Code Review Bot
2026-06-02 21:53 ` [PATCH v8 4/4] drm/amd/display: use plane color_mgmt_changed to track colorop changes Melissa Wen
2026-06-04  2:16   ` Claude review: " Claude Code Review Bot
2026-06-04  2:16 ` Claude review: drm/atomic: track individual colorop updates 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-patch2-20260602215743.914265-3-mwen@igalia.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