Skip to content

Add helper to validate modes

Karthik B S igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/igt_kms: Add helper to validate modeslib/igt_kms.c lib/igt_kms.h+15 -02 replies
2/2tests/kms_joiner: Add check to validate modetests/intel/kms_joiner.c+1 -01 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchKamil KoniecznyJeevan B
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH i-g-t 0/2] Add helper to validate modes

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.

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(+)
Signature · 1 line
2.43.0