public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/2] Add helper to validate modes
@ 2026-01-12  8:44 Karthik B S
  2026-01-12  8:44 ` [PATCH i-g-t 1/2] lib/igt_kms: " Karthik B S
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Karthik B S @ 2026-01-12  8:44 UTC (permalink / raw)
  To: igt-dev; +Cc: kamil.konieczny, swati2.sharma, Karthik B S

Add a helper function kmstest_mode_is_valid() that checks if
a given drmModeModeInfo pointer is non-NULL and has positive
width, height, and pixel clock.

This allows tests to safely check if an output mode is usable before
assigning it to a pipe or creating a framebuffer.

Signed-off-by: Karthik B S <karthik.b.s@intel.com>

Karthik B S (2):
  lib/igt_kms: Add helper to validate modes
  tests/kms_joiner: Add check to validate mode

 lib/igt_kms.c            | 14 ++++++++++++++
 lib/igt_kms.h            |  1 +
 tests/intel/kms_joiner.c |  1 +
 3 files changed, 16 insertions(+)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-01-12 15:22 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-12  8:44 [PATCH i-g-t 0/2] Add helper to validate modes Karthik B S
2026-01-12  8:44 ` [PATCH i-g-t 1/2] lib/igt_kms: " Karthik B S
2026-01-12  9:04   ` Kamil Konieczny
2026-01-12 15:19     ` Karthik B S
2026-01-12  8:44 ` [PATCH i-g-t 2/2] tests/kms_joiner: Add check to validate mode Karthik B S
2026-01-12  9:21   ` B, Jeevan
2026-01-12  9:38 ` ✓ Xe.CI.BAT: success for Add helper to validate modes Patchwork
2026-01-12  9:48 ` ✓ i915.CI.BAT: " Patchwork
2026-01-12 11:08 ` ✗ Xe.CI.Full: failure " Patchwork
2026-01-12 12:24 ` ✗ i915.CI.Full: " Patchwork
2026-01-12 15:22   ` Karthik B S

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox