Skip to content

RFC CSC Colorop tests

Harry Wentland igt-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10include/drm-uapi: Add DRM_COLOROP_CSC definitioninclude/drm-uapi/drm_mode.h+1 -00 replies
2/10lib/igt_kms: Add CSC colorop infrastructurelib/igt_kms.c lib/igt_kms.h tests/kms_colorop_helper.c +1 more+20 -10 replies
3/10lib/igt_fb: Add YUV color pattern framebuffer supportlib/igt_fb.c lib/igt_fb.h+50 -00 replies
4/10lib/igt_color_encoding: Add XRGB2101010 format supportlib/igt_color_encoding.c+1 -00 replies
5/10lib/igt_color: Add YUV pixel reading supportlib/igt_color.c+104 -60 replies
6/10lib/igt_color: Add CSC transform functions for YUV to RGBlib/igt_color.c lib/igt_color.h tests/kms_colorop.c+206 -530 replies
7/10tests/kms_colorop: Add CSC colorop teststests/kms_colorop.c tests/kms_colorop_helper.c tests/kms_colorop_helper.h+256 -620 replies
8/10tests/kms_colorop: Keep CRTC active between YUV tests with temp FBtests/kms_colorop.c+17 -50 replies
9/10tests/kms_colorop: Add bypass transition teststests/kms_colorop.c+121 -120 replies
10/10tests/kms_colorop: Increase VKMS bracket to 3 uptests/kms_colorop.c+1 -10 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH 00/10] CSC Colorop tests

I'm introducing a new color-space conversion (CSC) colorop with the kernel patches in this kernel branch:
https://gitlab.freedesktop.org/hwentland/linux/-/tree/csc-colorop

These patches add the functionality to IGT to test NV12 and P010 buffers with the kms_colorop tests, and add corresponding tests for CSC to kms_colorop.

These test work on amdgpu (P010-XR30 variants) and VKMS (NV12-XR24 variants).

On AMD HW a couple extra driver fixes are needed. They can be found at this kernel tree:
https://gitlab.freedesktop.org/hwentland/linux/-/tree/csc-colorop-all

Some more background on this work can be found at:
https://hwentland.github.io/2026/03/10/plane-color-pipeline-csc-3d-lut-kwin.html

Cc Alex Hung <[email protected]>
Cc Daniel Stone <[email protected]>
Cc Chaitanya Kumar Borah <[email protected]>
Cc Uma Shankar <[email protected]>
Cc Louis Chauvet <[email protected]>
Cc Melissa Wen <[email protected]>
Cc Simon Ser <[email protected]>

Harry Wentland (10):
include/drm-uapi: Add DRM_COLOROP_CSC definition lib/igt_kms: Add CSC colorop infrastructure
lib/igt_fb: Add YUV color pattern framebuffer support lib/igt_color_encoding: Add XRGB2101010 format support lib/igt_color: Add YUV pixel reading support lib/igt_color: Add CSC transform functions for YUV to RGB tests/kms_colorop: Add CSC colorop tests tests/kms_colorop: Keep CRTC active between YUV tests with temp FB tests/kms_colorop: Add bypass transition tests tests/kms_colorop: Increase VKMS bracket to 3 up

 include/drm-uapi/drm_mode.h |   1 +
 lib/igt_color.c             | 302 ++++++++++++++++++++++---
 lib/igt_color.h             |  10 +-
 lib/igt_color_encoding.c    |   1 +
 lib/igt_fb.c                |  44 ++++
 lib/igt_fb.h                |   6 +
 lib/igt_kms.c               |   2 +
 lib/igt_kms.h               |   2 +
 tests/kms_colorop.c         | 432 +++++++++++++++++++++++++++++-------
 tests/kms_colorop_helper.c  |  48 ++++
 tests/kms_colorop_helper.h  |  13 +-
 11 files changed, 749 insertions(+), 112 deletions(-)

--
2.53.0