From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2046.outbound.protection.outlook.com [40.107.95.46]) by gabe.freedesktop.org (Postfix) with ESMTPS id 0803610E567 for ; Thu, 19 Oct 2023 21:23:22 +0000 (UTC) From: Harry Wentland To: Date: Thu, 19 Oct 2023 17:22:53 -0400 Message-ID: <20231019212301.245282-1-harry.wentland@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Subject: [igt-dev] [RFC PATCH v2 0/8] IGT tests for the KMS Color Pipeline API List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Sasha McIntosh , Liviu Dudau , Victoria Brekenfeld , =?UTF-8?q?Michel=20D=C3=A4nzer?= , Sebastian Wick , Shashank Sharma , Christopher Braga , =?UTF-8?q?Jonas=20=C3=85dahl?= , Naseer Ahmed , Aleix Pol , Alexander Goins , Pekka Paalanen , Simon Ser , Hector Martin , Xaver Hugl , Sima , Joshua Ashton Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: This series introduces support for * drm_colorop DRM objects * COLOR_PIPELINE plane property Kernel changes: https://gitlab.freedesktop.org/hwentland/linux/-/merge_requests/5 libdrm changes: https://gitlab.freedesktop.org/hwentland/drm/-/merge_requests/1 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". Currently there are three tests: - 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 Cc: Ville Syrjala Cc: Pekka Paalanen Cc: Simon Ser Cc: Harry Wentland Cc: Melissa Wen Cc: Jonas Ådahl Cc: Sebastian Wick Cc: Shashank Sharma Cc: Alexander Goins Cc: Joshua Ashton Cc: Michel Dänzer Cc: Aleix Pol Cc: Xaver Hugl Cc: Victoria Brekenfeld Cc: Sima Cc: Uma Shankar Cc: Naseer Ahmed Cc: Christopher Braga Cc: Abhinav Kumar Cc: Arthur Grillo Cc: Hector Martin Cc: Liviu Dudau Cc: Sasha McIntosh Harry Wentland (8): lib/drmtest: Add is_vkms_device() include/drm-uapi: Add COLOROP object lib/igt_kms: Introduce drm_colorop object lib/igt_kms: Add new COLOR PIPELINE plane property 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 include/drm-uapi/drm_mode.h | 1 + lib/drmtest.c | 5 + lib/drmtest.h | 1 + lib/igt_color.c | 312 ++++++++++++++++++++++ lib/igt_color.h | 105 ++++++++ lib/igt_fb.c | 40 ++- lib/igt_fb.h | 3 + lib/igt_kms.c | 242 ++++++++++++++++- lib/igt_kms.h | 101 +++++++ lib/meson.build | 1 + tests/kms_colorop.c | 507 ++++++++++++++++++++++++++++++++++++ tests/kms_colorop.h | 87 +++++++ tests/kms_properties.c | 67 +++++ tests/meson.build | 1 + 14 files changed, 1468 insertions(+), 5 deletions(-) create mode 100644 lib/igt_color.c create mode 100644 lib/igt_color.h create mode 100644 tests/kms_colorop.c create mode 100644 tests/kms_colorop.h -- 2.42.0