Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lin Tzu Yang <rongh7426@gmail.com>
To: igt-dev@lists.freedesktop.org
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>,
	Swati Sharma <swati2.sharma@intel.com>,
	Karthik B S <karthik.b.s@intel.com>
Subject: [PATCH i-g-t v2 1/2] tests/kms_bw: Check is_atomic, not its address
Date: Wed,  2 Dec 2026 18:16:46 +0800	[thread overview]
Message-ID: <20261202101647.945186-1-rongh7426@gmail.com> (raw)

The fixture has igt_require(&data.display.is_atomic), which is always
true, so the test also runs on drivers without atomic modesetting
support. Test the value instead.

Reviewed-by: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Signed-off-by: Lin Tzu Yang <rongh7426@gmail.com>
---
v2:
- Move the note about AI use below the --- line, and use my full name
  in the author and Signed-off-by (Kamil).
- Add Kamil's Reviewed-by.

This change was written with the help of an AI coding assistant
(Claude).

 tests/kms_bw.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/kms_bw.c b/tests/kms_bw.c
index ea7cf7b..10bb520 100644
--- a/tests/kms_bw.c
+++ b/tests/kms_bw.c
@@ -334,7 +334,7 @@ int igt_main()
 		kmstest_set_vt_graphics_mode();
 
 		igt_display_require(&data.display, data.fd);
-		igt_require(&data.display.is_atomic);
+		igt_require(data.display.is_atomic);
 		igt_display_require_output(&data.display);
 
 	}
-- 
2.51.1.windows.1


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

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 10:16 Lin Tzu Yang [this message]
2026-12-02 10:16 ` [PATCH i-g-t v2 2/2] tests/kms_bw: Skip when pipe CRCs aren't supported Lin Tzu Yang

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=20261202101647.945186-1-rongh7426@gmail.com \
    --to=rongh7426@gmail.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=karthik.b.s@intel.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