Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: Swati Sharma <swati2.sharma@intel.com>, igt-dev@lists.freedesktop.org
Subject: Re: [PATCH i-g-t, v5 3/3] tests/kms_atomic: skip BACKGROUND_COLOR in CRTC state checks
Date: Fri, 18 Sep 2026 12:09:02 +0200	[thread overview]
Message-ID: <72eea6f1-69a5-4ca1-b2cc-dfea19858cbd@linux.intel.com> (raw)
In-Reply-To: <20260917191835.977425-4-swati2.sharma@intel.com>

Hey,

On 9/17/26 21:18, Swati Sharma wrote:
> BACKGROUND_COLOR is initialized to opaque black, while the generic CRTC
> state snapshot does not read it back. Comparing the property causes
> atomic tests to fail during setup. Exclude it from the generic state
> comparison while keeping the valid opaque default.
> 
> Assisted-by: GitHub Copilot:Claude Opus 4.6
> Signed-off-by: Swati Sharma <swati2.sharma@intel.com>
> ---
>  tests/kms_atomic.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c
> index ce5b00cd3..09b7915af 100644
> --- a/tests/kms_atomic.c
> +++ b/tests/kms_atomic.c
> @@ -218,7 +218,8 @@ static void plane_commit_atomic_err(igt_plane_t *plane,
>  
>  static bool crtc_filter(enum igt_atomic_crtc_properties prop)
>  {
> -	if (prop == IGT_CRTC_MODE_ID || prop == IGT_CRTC_ACTIVE)
> +	if (prop == IGT_CRTC_MODE_ID || prop == IGT_CRTC_ACTIVE ||
> +	    prop == IGT_CRTC_BACKGROUND_COLOR)
>  		return false;
>  
>  	return true;

Seems reasonable.

If this happens again in the future, we should switch the test from a denylist to an allowlist.

Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>

  reply	other threads:[~2026-09-18 10:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-17 19:18 [PATCH i-g-t, v5 0/3] tests/kms_color: Add support for background color testing Swati Sharma
2026-09-17 19:18 ` [PATCH i-g-t, v5 1/3] lib/igt_kms: Add support for the BACKGROUND_COLOR property Swati Sharma
2026-09-17 19:18 ` [PATCH i-g-t, v5 2/3] tests/kms_color: Add background-color subtest to test " Swati Sharma
2026-09-17 19:18 ` [PATCH i-g-t, v5 3/3] tests/kms_atomic: skip BACKGROUND_COLOR in CRTC state checks Swati Sharma
2026-09-18 10:09   ` Maarten Lankhorst [this message]
2026-09-18  1:19 ` ✗ i915.CI.BAT: failure for tests/kms_color: Add support for background color testing. (rev5) Patchwork
2026-09-18  1:58 ` ✓ Xe.CI.BAT: success " Patchwork
2026-09-18  9:55 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-09-21  6:31 ` ✗ i915.CI.BAT: failure for tests/kms_color: Add support for background color testing. (rev6) Patchwork
2026-09-21  6:49 ` ✗ Xe.CI.BAT: " Patchwork
2026-09-21  7:43 ` ✗ Xe.CI.FULL: " Patchwork
2026-09-21 12:20 ` ✓ i915.CI.BAT: success " Patchwork
2026-09-21 16:28 ` ✗ 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=72eea6f1-69a5-4ca1-b2cc-dfea19858cbd@linux.intel.com \
    --to=maarten.lankhorst@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --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