From: Melissa Wen <mwen@igalia.com>
To: Gil Dekel <gildekel@google.com>
Cc: igt-dev@lists.freedesktop.org,
Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>,
Swati Sharma <swati2.sharma@intel.com>,
Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Mark Yacoub <markyacoub@google.com>
Subject: Re: [PATCH i-g-t v3 2/2] lib/igt_kms: Reset connector Colorspace
Date: Fri, 04 Dec 2026 17:05:33 -0100 [thread overview]
Message-ID: <be3c1b4aa16b7ed41c979427a4590cbb@igalia.com> (raw)
In-Reply-To: <20261201215037.3329830-3-gildekel@google.com>
On 01-12-2026 20:50, Gil Dekel wrote:
> igt_display_reset() leaves the connector Colorspace property alone, so
> tests inherit whatever the previous KMS client set. After a compositor
> that drove an HDR eDP panel exits, the connector can stay at
> BT2020_RGB. The next test then sends BT.2020 colorimetry to the sink
> while it renders plain sRGB content.
>
> Track Colorspace as IGT_CONNECTOR_COLORSPACE and set it back to
> "Default" in igt_output_reset(), next to HDR_OUTPUT_METADATA. Use
> igt_output_try_prop_enum() so a driver whose enum lacks "Default" can't
> abort the reset.
>
> Cc: Melissa Wen <mwen@igalia.com>
> Cc: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
> Cc: Swati Sharma <swati2.sharma@intel.com>
> Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
> Cc: Mark Yacoub <markyacoub@google.com>
> Assisted-by: Claude:claude-opus-5.5
> Signed-off-by: Gil Dekel <gildekel@google.com>
> ---
>
> Notes:
> v3: No code changes; rebased on master and added Kamil to Cc.
> v2: No changes.
>
> lib/igt_kms.c | 6 ++++++
> lib/igt_kms.h | 1 +
> 2 files changed, 7 insertions(+)
>
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index b88c33d99..d554d42e9 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -759,6 +759,7 @@ const char * const igt_connector_prop_names[IGT_NUM_CONNECTOR_PROPS] = {
> [IGT_CONNECTOR_WRITEBACK_FB_ID] = "WRITEBACK_FB_ID",
> [IGT_CONNECTOR_WRITEBACK_OUT_FENCE_PTR] = "WRITEBACK_OUT_FENCE_PTR",
> [IGT_CONNECTOR_DITHERING_MODE] = "dithering mode",
> + [IGT_CONNECTOR_COLORSPACE] = "Colorspace",
> };
>
> const char * const igt_rotation_names[] = {
> @@ -2779,6 +2780,10 @@ static void igt_output_reset(igt_output_t *output)
> if (igt_output_has_prop(output, IGT_CONNECTOR_DITHERING_MODE))
> igt_output_set_prop_enum(output, IGT_CONNECTOR_DITHERING_MODE,
> "off");
> +
> + if (igt_output_has_prop(output, IGT_CONNECTOR_COLORSPACE))
> + igt_output_try_prop_enum(output, IGT_CONNECTOR_COLORSPACE,
> + "Default");
> }
>
> /**
> @@ -2794,6 +2799,7 @@ static void igt_output_reset(igt_output_t *output)
> * %IGT_CONNECTOR_CONTENT_PROTECTION (if applicable)
> * %IGT_CONNECTOR_HDR_OUTPUT_METADATA (if applicable)
> * - %IGT_CONNECTOR_DITHERING_MODE (if applicable)
> + * - %IGT_CONNECTOR_COLORSPACE (if applicable)
> * - igt_output_override_mode() to default.
> *
> * For pipes:
> diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> index 29a4e96fc..eee56f21d 100644
> --- a/lib/igt_kms.h
> +++ b/lib/igt_kms.h
> @@ -203,6 +203,7 @@ enum igt_atomic_connector_properties {
> IGT_CONNECTOR_WRITEBACK_FB_ID,
> IGT_CONNECTOR_WRITEBACK_OUT_FENCE_PTR,
> IGT_CONNECTOR_DITHERING_MODE,
> + IGT_CONNECTOR_COLORSPACE,
Nit: weird indentation.
Other from that,
Reviewed-by: Melissa Wen <mwen@igalia.com>
Thanks!
> IGT_NUM_CONNECTOR_PROPS
> };
next prev parent reply other threads:[~2026-12-04 18:06 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 21:50 [PATCH i-g-t v3 0/2] lib/igt_kms: Reset leftover color state Gil Dekel
2026-12-01 21:50 ` [PATCH i-g-t v3 1/2] lib/igt_kms: Reset leftover COLOR_PIPELINE Gil Dekel
2026-12-04 18:24 ` Melissa Wen
2026-12-01 21:50 ` [PATCH i-g-t v3 2/2] lib/igt_kms: Reset connector Colorspace Gil Dekel
2026-12-04 18:05 ` Melissa Wen [this message]
2026-12-01 22:20 ` ✓ Xe.CI.BAT: success for lib/igt_kms: Reset leftover color state Patchwork
2026-12-01 22:39 ` ✓ i915.CI.BAT: " Patchwork
2026-12-02 18:10 ` ✓ Xe.CI.FULL: " Patchwork
2026-12-02 23:27 ` ✗ i915.CI.Full: failure " Patchwork
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=be3c1b4aa16b7ed41c979427a4590cbb@igalia.com \
--to=mwen@igalia.com \
--cc=chaitanya.kumar.borah@intel.com \
--cc=gildekel@google.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=markyacoub@google.com \
--cc=swati2.sharma@intel.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