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

Swati Sharma
2026-04-27T10:46:47Z

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

--
2.25.1