Tags

Tags give the ability to mark specific points in history as being important
  • sent/20250912-post-blend-colorops-bec963278a18-v1

    Support post-blend color pipeline API
    
    This series introduces support for the KMS post-blend color pipeline
    API, which is currently under review as an RFC [1], and extends the test
    coverage for it.
    
    This series is based on the pre-blend color pipeline API IGT series [2].
    
    Tested on VKMS. At the moment the post-blend color pipeline support in
    VKMS is only available at the development branch [3], but it will be
    added to the kernel patch series submission for v2.
    
    Caveats:
    
    * The new tests
    
      kms_colorop@xr24-xr24-plane-ctm_3x4_bt709_dec-crtc-ctm_3x4_bt709_enc
      kms_colorop@xr24-xr24-plane-ctm_3x4_bt709_enc-crtc-ctm_3x4_bt709_dec
    
      fail when running on the VKMS driver due to clamping to u16 happening
      in-between pre- and post-blend pipelines.
    
    * The tests
    
      kms_color@gamma
      kms_color@invalid-gamma-lut-sizes
      kms_color@legacy-gamma-reset
    
      now get skipped since DRM_CLIENT_CAP_POST_BLEND_COLOR_PIPELINE is set
      in the common igt_display_require(), hiding the now deprecated color
      properties (GAMMA_LUT, DEGAMMA_LUT, CTM) required for those tests.
    
    [1] https://lore.kernel.org/dri-devel/20250822-mtk-post-blend-color-pipeline-v1-0-a9446d4aca82@collabora.com/
    [2] https://lore.kernel.org/igt-dev/20250815040659.3321102-1-alex.hung@amd.com/
    [3] https://gitlab.collabora.com/nfraprado/linux/-/commits/b4/mtk-post-blend-color-pipeline
    
    To: Development mailing list for IGT GPU Tools <igt-dev@lists.freedesktop.org>
    Cc: Alex Hung <alex.hung@amd.com>
    Cc: <harry.wentland@amd.com>
    Cc: <leo.liu@amd.com>
    Cc: daniels@collabora.com
    Cc: leandro.ribeiro@collabora.com
    Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
    
    ---
    Nícolas F. R. A. Prado (9):
          include/drm-uapi: Sync with drm-next
          lib/igt_kms: Store pointer to display instead of plane in colorop
          lib/igt_kms: Move color pipeline properties in igt_plane_t to struct
          lib/igt_kms: Support post-blend colorops
          tests/kms_colorop: Check for colorop unique id in CRTCs as well
          tests/kms_colorop: Allow specifying post-blend colorops
          tests/kms_colorop: Add tests for post-blend color pipeline
          tests/kms_properties: Ignore color properties in CRTC based on pipeline
          tests/kms_properties: Test colorop properties on CRTC
    
     include/drm-uapi/drm.h |  16 ++++
     lib/igt_kms.c          | 111 +++++++++++++++++++-------
     lib/igt_kms.h          |  23 ++++--
     tests/kms_colorop.c    | 207 ++++++++++++++++++++++++++++++++++---------------
     tests/kms_properties.c |  39 +++++++++-
     5 files changed, 296 insertions(+), 100 deletions(-)
    ---
    base-commit: 302ff647cccb615f32942cdbe0e8084fe462cd05
    change-id: 20250912-post-blend-colorops-bec963278a18
    
    Best regards,