Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 00/12] YUV Conversion Colorop tests
@ 2026-06-23 17:57 Harry Wentland
  2026-06-23 17:57 ` [PATCH v3 01/12] include/drm-uapi: Add DRM_COLOROP_FIXED_MATRIX Harry Wentland
                   ` (15 more replies)
  0 siblings, 16 replies; 28+ messages in thread
From: Harry Wentland @ 2026-06-23 17:57 UTC (permalink / raw)
  To: igt-dev
  Cc: Harry Wentland, Alex Hung, Daniel Stone, Chaitanya Kumar Borah,
	Uma Shankar, Louis Chauvet, Melissa Wen, Simon Ser, Robert Mader

This kernel branch introduces a new fixed matrix colorop with
named matrices, including matrices for all YCbCr conversions
from BT.601, BT.709, and BT.2020, both limited and full range.
https://gitlab.freedesktop.org/hwentland/linux/-/tree/csc-ff-colorop

These patches add the functionality to IGT to test NV12 and
P010 buffers with the kms_colorop tests, and add corresponding
tests for the Fixed Matrix colorop 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/yuv-fm-colorop

This tree can be found at:
https://gitlab.freedesktop.org/hwentland/igt-gpu-tools/-/tree/yuv-fm-colorop

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

v3:
- Update to use renamed Fixed Matrix colorop. Rename related functions.

Cc: Alex Hung <alex.hung@amd.com>
Cc: Daniel Stone <daniels@collabora.com>
Cc: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Cc: Uma Shankar <uma.shankar@intel.com>
Cc: Louis Chauvet <louis.chauvet@bootlin.com>
Cc: Melissa Wen <mwen@igalia.com>
Cc: Simon Ser <contact@emersion.fr>
Cc: Robert Mader <robert.mader@collabora.com>

Harry Wentland (12):
  include/drm-uapi: Add DRM_COLOROP_FIXED_MATRIX
  lib/igt_kms: Add IGT_COLOROP_FIXED_MATRIX property
  tests/kms_colorop_helper: Add Fixed Matrix colorop infrastructure
  tests/kms_colorop_helper: Add helpers to get encoding/range from
    FIXED_MATRIX name
  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: Refactor transform_pixels for input/output FBs and CSC
  tests/kms_colorop: Add FIXED_MATRIX 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 |  11 +
 lib/igt_color.c             | 242 +++++++++++++++++---
 lib/igt_color.h             |   6 +-
 lib/igt_color_encoding.c    |   1 +
 lib/igt_fb.c                |  41 ++++
 lib/igt_fb.h                |   6 +
 lib/igt_kms.c               |   1 +
 lib/igt_kms.h               |   1 +
 tests/kms_colorop.c         | 432 +++++++++++++++++++++++++++++-------
 tests/kms_colorop_helper.c  |  75 +++++++
 tests/kms_colorop_helper.h  |  16 +-
 11 files changed, 721 insertions(+), 111 deletions(-)

--
2.54.0


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2026-07-25  7:25 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 17:57 [PATCH v3 00/12] YUV Conversion Colorop tests Harry Wentland
2026-06-23 17:57 ` [PATCH v3 01/12] include/drm-uapi: Add DRM_COLOROP_FIXED_MATRIX Harry Wentland
2026-07-25  6:52   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 02/12] lib/igt_kms: Add IGT_COLOROP_FIXED_MATRIX property Harry Wentland
2026-07-25  6:56   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 03/12] tests/kms_colorop_helper: Add Fixed Matrix colorop infrastructure Harry Wentland
2026-07-25  6:56   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 04/12] tests/kms_colorop_helper: Add helpers to get encoding/range from FIXED_MATRIX name Harry Wentland
2026-07-25  7:04   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 05/12] lib/igt_fb: Add YUV color pattern framebuffer support Harry Wentland
2026-07-25  7:05   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 06/12] lib/igt_color_encoding: Add XRGB2101010 format support Harry Wentland
2026-07-25  7:05   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 07/12] lib/igt_color: Add YUV pixel reading support Harry Wentland
2026-07-25  7:10   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 08/12] lib/igt_color: Refactor transform_pixels for input/output FBs and CSC Harry Wentland
2026-06-23 17:57 ` [PATCH v3 09/12] tests/kms_colorop: Add FIXED_MATRIX colorop tests Harry Wentland
2026-07-25  7:15   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 10/12] tests/kms_colorop: Keep CRTC active between YUV tests with temp FB Harry Wentland
2026-07-25  7:19   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 11/12] tests/kms_colorop: Add bypass transition tests Harry Wentland
2026-07-25  7:25   ` Alex Hung
2026-06-23 17:57 ` [PATCH v3 12/12] tests/kms_colorop: Increase VKMS bracket to 3 up Harry Wentland
2026-07-25  7:24   ` Alex Hung
2026-06-23 18:55 ` ✓ Xe.CI.BAT: success for YUV Conversion Colorop tests (rev2) Patchwork
2026-06-23 19:19 ` ✓ i915.CI.BAT: " Patchwork
2026-06-24  1:27 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-24  5:44 ` ✗ i915.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox