Skip to content

RFC IGT tests for the KMS Color Pipeline API

Bhanuprakash Modem igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v4 RFC Latest22 patches 1 replyIn review

v3 from the cover letter

- Remove need for IOCTLs and libdrm changes
- Test colorop properties with both atomic and legacy code paths
- move enum drm_colorop_type to drm_mode.h
- Add descriptions for public functions in lib (Kamil)
- Use SPDX style license identifier (Kamil)
- Replace Skia license comment with copyright note in file header
- Fix kms_colorop subtests if applicable color pipeline not found

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22lib/drmtest: Add is_vkms_device()lib/drmtest.c lib/drmtest.h+6 -00 replies
2/22lib/igt_kms: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINEinclude/drm-uapi/drm.h lib/igt_kms.c lib/igt_kms.h+20 -00 replies
3/22include/drm-uapi: Add COLOROP objectinclude/drm-uapi/drm_mode.h+5 -00 replies
4/22lib/igt_kms: Introduce drm_colorop and COLOR_PIPELINElib/igt_kms.c lib/igt_kms.h+348 -60 replies
5/22tests/kms_properties: Add colorop properties testtests/kms_properties.c+71 -00 replies
6/22igt/color: Add SW color transform functionalitylib/igt_color.c lib/igt_color.h lib/igt_fb.c +2 more+307 -30 replies
7/22lib/igt_fb: Add copy_fb functionlib/igt_fb.c lib/igt_fb.h+35 -00 replies
8/22tests/kms_colorop: Add kms_colorop teststests/kms_colorop.c tests/kms_colorop.h tests/kms_properties.c +1 more+615 -00 replies
9/22drm-uapi: Add 3x4 CTMinclude/drm-uapi/drm_mode.h+18 -10 replies
10/22lib/igt_kms: Add support for DATA colorop propertylib/igt_kms.c lib/igt_kms.h+41 -30 replies
11/22lib/igt_color: Add support for 3x4 matriceslib/igt_color.c lib/igt_color.h+158 -10 replies
12/22tests/kms_colorop: Add 3x4 CTM teststests/kms_colorop.c tests/kms_colorop.h+68 -140 replies
13/22tests/kms_properties: Fix compilation errorstests/kms_properties.c+1 -50 replies
14/22lib/igt_kms: Destroy colorops on exitlib/igt_kms.c+6 -00 replies
15/22lib/colorops: Move few helpers to common place to reuselib/igt_color.c lib/igt_color.h tests/kms_color_helper.c +4 more+324 -3610 replies
16/22drm-uapi: Add 3x3 CTMinclude/drm-uapi/drm_mode.h+1 -00 replies
17/22drm-uapi: Add custom 1D LUTinclude/drm-uapi/drm_mode.h+29 -00 replies
18/22lib/igt_color: Add support for 3x3 matriceslib/igt_color.h tests/kms_color_helper.c tests/kms_color_helper.h+45 -00 replies
19/22lib/colorops: Add support for Custom 1D LUTlib/igt_kms.c lib/igt_kms.h tests/kms_color_helper.c +1 more+126 -00 replies
20/22lib/igt_kms: Increase the colorops countlib/igt_kms.c+1 -10 replies
21/22tests/kms_color_helper: Add helpers to clear colorops datatests/kms_color_helper.c tests/kms_color_helper.h+32 -00 replies
22/22tests/kms_color: Add plane color pipeline tests for Intel hardwaretests/kms_color.c+267 -60 replies

Reviews trailers per patch

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

Read the v4 thread

Cover letter [RFC v4 00/22] IGT tests for the KMS Color Pipeline API

This series introduces support for
* drm_colorop DRM objects
* COLOR_PIPELINE plane property

Kernel changes:
https://gitlab.freedesktop.org/hwentland/linux/-/merge_requests/5

It also adds a new kms_colorop test case that tests the color pipeline API. The tests are designed to be easily extensible with a "transform" and "compare" function pointer for each test. The "transform" function performs the transformations under test via SW routines. The "compare" function compares the DRM/KMS result (via a writeback connector) with the result derived via the SW "transform".

There are three tests for LUTs:
- plane-srgb_eotf: pre-blending sRGB EOTF
- plane-srgb_inv_eotf: pre-blending sRGB Inverse EOTF
- plane-srgb_eotf-srgb_inv_eotf: pre-blending sRGB EOTF, followed by its inverse

And a number of tests for matrices.

v3:
- Remove need for IOCTLs and libdrm changes
- Test colorop properties with both atomic and legacy code paths
- move enum drm_colorop_type to drm_mode.h
- Add descriptions for public functions in lib (Kamil)
- Use SPDX style license identifier (Kamil)
- Replace Skia license comment with copyright note in file header
- Fix kms_colorop subtests if applicable color pipeline not found

v4: (Bhanu)
- Though v3 required some cleanup, I am not touching it, instead fix any issue as new patch (we may need to squash those patches)
- Rebase v3
- Move few helpers to common place (kms_color_helper) to reuse by multiple tests
- New helpers to cleanup the colorop props.
- Helpers to support custom 1D LUT & CTM 3x3
- New subtests to validate Intel plane color pipeline, please find the KMD changes: https://patchwork.freedesktop.org/series/129812/

Cc Ville Syrjala <[email protected]>
Cc Pekka Paalanen <[email protected]>
Cc Simon Ser <[email protected]>
Cc Harry Wentland <[email protected]>
Cc Melissa Wen <[email protected]>
Cc Jonas Ådahl <[email protected]>
Cc Sebastian Wick <[email protected]>
Cc Shashank Sharma <[email protected]>
Cc Alexander Goins <[email protected]>
Cc Joshua Ashton <[email protected]>
Cc Michel Dänzer <[email protected]>
Cc Aleix Pol <[email protected]>
Cc Xaver Hugl <[email protected]>
Cc Victoria Brekenfeld <[email protected]>
Cc Uma Shankar <[email protected]>
Cc Bhanuprakash Modem <[email protected]>
Cc Naseer Ahmed <[email protected]>
Cc Christopher Braga <[email protected]>
Cc Abhinav Kumar <[email protected]>
Cc Arthur Grillo <[email protected]>
Cc Hector Martin <[email protected]>
Cc Liviu Dudau <[email protected]>
Cc Sasha McIntosh <[email protected]>

Bhanuprakash Modem (10):
tests/kms_properties: Fix compilation errors lib/igt_kms: Destroy colorops on exit
lib/colorops: Move few helpers to common place to reuse
drm-uapi: Add 3x3 CTM
drm-uapi: Add custom 1D LUT
lib/igt_color: Add support for 3x3 matrices lib/colorops: Add support for Custom 1D LUT lib/igt_kms: Increase the colorops count tests/kms_color_helper: Add helpers to clear colorops data tests/kms_color: Add plane color pipeline tests for Intel hardware

Harry Wentland (12):
lib/drmtest: Add is_vkms_device()
lib/igt_kms: Introduce DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE include/drm-uapi: Add COLOROP object lib/igt_kms: Introduce drm_colorop and COLOR_PIPELINE tests/kms_properties: Add colorop properties test igt/color: Add SW color transform functionality lib/igt_fb: Add copy_fb function tests/kms_colorop: Add kms_colorop tests
drm-uapi: Add 3x4 CTM
lib/igt_kms: Add support for DATA colorop property lib/igt_color: Add support for 3x4 matrices tests/kms_colorop: Add 3x4 CTM tests

 include/drm-uapi/drm.h      |  15 ++
 include/drm-uapi/drm_mode.h |  52 +++++
 lib/drmtest.c               |   5 +
 lib/drmtest.h               |   1 +
 lib/igt_color.c             | 361 +++++++++++++++++++++++++++++
 lib/igt_color.h             |  81 +++++++
 lib/igt_fb.c                |  40 +++-
 lib/igt_fb.h                |   3 +
 lib/igt_kms.c               | 312 ++++++++++++++++++++++++-
 lib/igt_kms.h               |  97 +++++++-
 lib/meson.build             |   1 +
 tests/kms_color.c           | 273 +++++++++++++++++++++-
 tests/kms_color_helper.c    | 313 ++++++++++++++++++++++++++
 tests/kms_color_helper.h    |  91 ++++++++
 tests/kms_colorop.c         | 438 ++++++++++++++++++++++++++++++++++++
 tests/kms_properties.c      |  72 ++++++
 tests/meson.build           |   2 +
 17 files changed, 2140 insertions(+), 17 deletions(-)
 create mode 100644 lib/igt_color.c
 create mode 100644 lib/igt_color.h
 create mode 100644 tests/kms_colorop.c

--
2.43.0