Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v3 0/6] Add FIXED_MATRIX colorop tests
@ 2026-08-06 12:03 Swati Sharma
  2026-08-06 12:03 ` [PATCH i-g-t 1/6] include/drm-uapi: Add DRM_COLOROP_FIXED_MATRIX definition Swati Sharma
                   ` (9 more replies)
  0 siblings, 10 replies; 19+ messages in thread
From: Swati Sharma @ 2026-08-06 12:03 UTC (permalink / raw)
  To: igt-dev; +Cc: Swati Sharma

Add support for testing the DRM FIXED_MATRIX colorop type, which
selects from predefined hardware color space conversion matrices
rather than programmable coefficients.

The series adds:
- UAPI definition for DRM_COLOROP_FIXED_MATRIX
- FIXED_MATRIX_TYPE property support in igt_kms
- Colorop helper support for configuring FIXED_MATRIX blocks
- Pipe-CRC based tests in kms_color_pipeline
- Chamelium frame-capture based tests in kms_chamelium_color_pipeline

With this, the SDR plane color pipeline looks like:

[YUV Full/Limited -> RGB] -> [1D LUT]

A single FIXED_MATRIX colorop handles both full and limited range
YCbCr to RGB conversion.

Supported FIXED_MATRIX modes:
  - YCbCr 601 Full to RGB
  - YCbCr 601 Limited to RGB
  - YCbCr 709 Full to RGB
  - YCbCr 709 Limited to RGB
  - YCbCr 2020 NC Full to RGB
  - YCbCr 2020 NC Limited to RGB

v2: -Naming changes (CSC_FF -> FIXED_MATRIX)
v3: -Drop YCbCr limited to full and RGB709 to RGB2020 matrices
     until we have non-IGT userspace that shows their use
    -Rename subtests to yuv-rgb-btXXX with limited range variants
    -Add limited range test coverage

Swati Sharma (6):
  include/drm-uapi: Add DRM_COLOROP_FIXED_MATRIX definition
  lib/igt_kms: Add FIXED_MATRIX_TYPE colorop property
  tests/kms_colorop_helper: Add FIXED_MATRIX colorop support
  tests/kms_color_pipeline: Add FIXED_MATRIX colorop tests
  tests/kms_color_pipeline: Remove unused color_depth and drm_format
  tests/kms_chamelium_color_pipeline: Add FIXED_MATRIX colorop tests

 include/drm-uapi/drm_mode.h                   |  11 +
 lib/igt_kms.c                                 |   1 +
 lib/igt_kms.h                                 |   1 +
 .../chamelium/kms_chamelium_color_pipeline.c  | 307 ++++++++++++++++
 tests/kms_color_pipeline.c                    | 345 +++++++++++++++++-
 tests/kms_colorop_helper.c                    |  21 ++
 tests/kms_colorop_helper.h                    |  21 +-
 7 files changed, 700 insertions(+), 7 deletions(-)

-- 
2.25.1

^ permalink raw reply	[flat|nested] 19+ messages in thread
* [PATCH i-g-t 0/6] Add FIXED_MATRIX colorop tests
@ 2026-07-27 18:55 Swati Sharma
  2026-07-27 18:55 ` [PATCH i-g-t 6/6] tests/kms_chamelium_color_pipeline: " Swati Sharma
  0 siblings, 1 reply; 19+ messages in thread
From: Swati Sharma @ 2026-07-27 18:55 UTC (permalink / raw)
  To: igt-dev; +Cc: Swati Sharma

Add support for testing the DRM FIXED_MATRIX colorop type, which
selects from predefined hardware color space conversion matrices
rather than programmable coefficients.

The series adds:
- UAPI definition for DRM_COLOROP_FIXED_MATRIX
- FIXED_MATRIX_TYPE property support in igt_kms
- Colorop helper support for configuring FIXED_MATRIX blocks
- Pipe-CRC based tests in kms_color_pipeline
- Chamelium frame-capture based tests in kms_chamelium_color_pipeline

Supported FIXED_MATRIX modes:
  - YCbCr 601 Full NC to RGB
  - YCbCr 709 Full NC to RGB
  - YCbCr 2020 Full NC to RGB
  - YCbCr limited to full
  - RGB709 to RGB2020

The tests validate standalone FIXED_MATRIX, FIXED_MATRIX + 1D LUT,
1D LUT + FIXED_MATRIX + 1D LUT, and YCbCr range correction pipelines
matching the SDR plane hardware pipeline structure.

Swati Sharma (6):
  include/drm-uapi: Add DRM_COLOROP_FIXED_MATRIX definition
  lib/igt_kms: Add FIXED_MATRIX_TYPE colorop property
  tests/kms_colorop_helper: Add FIXED_MATRIX colorop support
  tests/kms_color_pipeline: Add FIXED_MATRIX colorop tests
  tests/kms_color_pipeline: Remove unused color_depth and drm_format
  tests/kms_chamelium_color_pipeline: Add FIXED_MATRIX colorop tests

 include/drm-uapi/drm_mode.h                   |  11 +
 lib/igt_kms.c                                 |   1 +
 lib/igt_kms.h                                 |   1 +
 .../chamelium/kms_chamelium_color_pipeline.c  | 339 +++++++++++++++
 tests/kms_color_pipeline.c                    | 391 +++++++++++++++++-
 tests/kms_colorop_helper.c                    |  20 +
 tests/kms_colorop_helper.h                    |  20 +-
 7 files changed, 776 insertions(+), 7 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2026-08-13 14:02 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-06 12:03 [PATCH i-g-t v3 0/6] Add FIXED_MATRIX colorop tests Swati Sharma
2026-08-06 12:03 ` [PATCH i-g-t 1/6] include/drm-uapi: Add DRM_COLOROP_FIXED_MATRIX definition Swati Sharma
2026-08-13 13:57   ` Borah, Chaitanya Kumar
2026-08-06 12:03 ` [PATCH i-g-t 2/6] lib/igt_kms: Add FIXED_MATRIX_TYPE colorop property Swati Sharma
2026-08-13 13:57   ` Borah, Chaitanya Kumar
2026-08-06 12:03 ` [PATCH i-g-t 3/6] tests/kms_colorop_helper: Add FIXED_MATRIX colorop support Swati Sharma
2026-08-13 13:58   ` Borah, Chaitanya Kumar
2026-08-06 12:03 ` [PATCH i-g-t 4/6] tests/kms_color_pipeline: Add FIXED_MATRIX colorop tests Swati Sharma
2026-08-13 14:00   ` Borah, Chaitanya Kumar
2026-08-06 12:03 ` [PATCH i-g-t 5/6] tests/kms_color_pipeline: Remove unused color_depth and drm_format Swati Sharma
2026-08-13 14:00   ` Borah, Chaitanya Kumar
2026-08-06 12:03 ` [PATCH i-g-t 6/6] tests/kms_chamelium_color_pipeline: Add FIXED_MATRIX colorop tests Swati Sharma
2026-08-06 15:02   ` Jani Nikula
2026-08-13 14:00   ` Borah, Chaitanya Kumar
2026-08-07  0:28 ` ✓ Xe.CI.BAT: success for Add FIXED_MATRIX colorop tests (rev3) Patchwork
2026-08-07  0:30 ` ✓ i915.CI.BAT: " Patchwork
2026-08-07  8:57 ` ✗ i915.CI.Full: failure " Patchwork
2026-08-07 14:19 ` ✓ Xe.CI.FULL: success " Patchwork
  -- strict thread matches above, loose matches on Subject: below --
2026-07-27 18:55 [PATCH i-g-t 0/6] Add FIXED_MATRIX colorop tests Swati Sharma
2026-07-27 18:55 ` [PATCH i-g-t 6/6] tests/kms_chamelium_color_pipeline: " Swati Sharma

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