From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTPS id 496E910E215 for ; Mon, 29 May 2023 05:34:17 +0000 (UTC) From: Bhanuprakash Modem To: igt-dev@lists.freedesktop.org Date: Mon, 29 May 2023 10:57:20 +0530 Message-Id: <20230529052835.860047-8-bhanuprakash.modem@intel.com> In-Reply-To: <20230529052835.860047-1-bhanuprakash.modem@intel.com> References: <20230529052835.860047-1-bhanuprakash.modem@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [igt-dev] [i-g-t V4 07/82] tests/chamelium/kms_chamelium_color: Document each subtest for testplan List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: igt-dev-bounces@lists.freedesktop.org Sender: "igt-dev" List-ID: Add documentation for all kms tests which is used by IGT testplan documentation. Signed-off-by: Bhanuprakash Modem --- tests/chamelium/kms_chamelium_color.c | 45 +++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/tests/chamelium/kms_chamelium_color.c b/tests/chamelium/kms_chamelium_color.c index bbb929b64..709b6ec2c 100644 --- a/tests/chamelium/kms_chamelium_color.c +++ b/tests/chamelium/kms_chamelium_color.c @@ -22,10 +22,25 @@ * */ +/** + * TEST: kms chamelium color + * Category: Display + * Description: Test Color Features at Pipe level using Chamelium to verify instead of CRC + */ + #include "igt_color_helper.h" IGT_TEST_DESCRIPTION("Test Color Features at Pipe level using Chamelium to verify instead of CRC"); +/** + * SUBTEST: degamma + * Description: Verify that degamma LUT transformation works correctly + * Functionality: colorspace + * Mega feature: Color mgmt + * Run type: FULL + * Test category: functionality test + * Driver requirement: any + */ /* * Draw 3 gradient rectangles in red, green and blue, with a maxed out * degamma LUT and verify we have the same frame dump as drawing solid color @@ -115,6 +130,15 @@ static bool test_pipe_degamma(data_t *data, return ret; } +/** + * SUBTEST: gamma + * Description: Verify that gamma LUT transformation works correctly + * Functionality: colorspace_gamma + * Mega feature: Color mgmt + * Run type: FULL + * Test category: functionality test + * Driver requirement: any + */ /* * Draw 3 gradient rectangles in red, green and blue, with a maxed out * gamma LUT and verify we have the same frame dump as drawing solid @@ -465,6 +489,27 @@ run_gamma_degamma_tests_for_pipe(data_t *data, enum pipe p, igt_assert(test_t(data, data->primary, data->ports[port_idx])); } +/** + * SUBTEST: ctm-%s + * Description: Check the color transformation %arg[1] + * Functionality: colorspace + * Mega feature: Color mgmt + * Run type: FULL + * Test category: functionality test + * Driver requirement: any + * + * arg[1]: + * + * @0-25: for 0.25 transparancy + * @0-50: for 0.50 transparancy + * @0-75: for 0.75 transparancy + * @blue-to-red: from blue to red + * @green-to-red: from green to red + * @limited-range: with identity matrix + * @max: for max transparancy + * @negative: for negative transparancy + * @red-to-blue: from red to blue + */ static void run_ctm_tests_for_pipe(data_t *data, enum pipe p, color_t *expected_colors, -- 2.40.0