Skip to content

tests/kms_colorspace: Add Colorspace connector property test

Swati Sharma igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/igt_kms: Add Colorspace connector property supportlib/igt_kms.c lib/igt_kms.h+7 -00 replies
2/2tests/kms_colorspace: Add Colorspace connector property testtests/kms_colorspace.c tests/meson.build+927 -12 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH i-g-t 0/2] tests/kms_colorspace: Add Colorspace connector property test

Add a new IGT test (kms_colorspace) for the DRM Colorspace connector property. This is a basic sanity validation suite — it does NOT perform pixel-level comparison or color-accuracy verification. Instead it exercises the kernel interface to confirm that:

- The Colorspace enum property is exposed with expected values.
- Each colorspace value can be set and read back via atomic commit (16 parameterized subtests per connector type).
- CRC sanity checks confirm the display output is not corrupted when each colorspace value is active (no pixel comparison, just ensuring the output remains valid).
- Colorspace survives DPMS off/on and suspend/resume cycles.
- Invalid enum values are correctly rejected with -EINVAL.
- HDMI-only enums are absent on DP connectors and vice-versa.

Patch 1 adds the Colorspace property plumbing in lib/igt_kms. Patch 2 adds the kms_colorspace test with all subtests above.

Swati Sharma (2):
lib/igt_kms: Add Colorspace connector property support tests/kms_colorspace: Add Colorspace connector property test

 lib/igt_kms.c          |   6 +
 lib/igt_kms.h          |   1 +
 tests/kms_colorspace.c | 925 +++++++++++++++++++++++++++++++++++++++++
 tests/meson.build      |   3 +-
 4 files changed, 934 insertions(+), 1 deletion(-)
 create mode 100644 tests/kms_colorspace.c
Signature · 1 line
2.25.1