tests/kms_colorspace: Add Colorspace connector property test
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | lib/igt_kms: Add Colorspace connector property supportlib/ lib/ | +7 | 0 replies | |
| 2/2 | tests/kms_colorspace: Add Colorspace connector property testtests/ tests/ | +927 | 2 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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