diff options
author | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2023-11-25 21:50:09 +0530 |
---|---|---|
committer | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2023-11-27 11:00:35 +0530 |
commit | b88ef1a06ad599265c3661219ea6b07028277a92 (patch) | |
tree | b751ac9ce23d4dcabe14f640f830206b3795222a /tests/kms_plane_alpha_blend.c | |
parent | 2ddd8cac90d4333943cd017319514949b047821b (diff) |
tests/kms/testplan: Move testplan documentation to beginning of the file
To maintain the uniformness, move testplan documentation
to beginning of the file.
Move TEST block to before the #includes, and SUBTEST block
to after the #includes.
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Swati Sharma <swati2.sharma@intel.com>
Diffstat (limited to 'tests/kms_plane_alpha_blend.c')
-rw-r--r-- | tests/kms_plane_alpha_blend.c | 94 |
1 files changed, 48 insertions, 46 deletions
diff --git a/tests/kms_plane_alpha_blend.c b/tests/kms_plane_alpha_blend.c index f023fae74..d37407150 100644 --- a/tests/kms_plane_alpha_blend.c +++ b/tests/kms_plane_alpha_blend.c @@ -29,8 +29,56 @@ * Category: Display * Description: Test plane alpha and blending mode properties */ + #include "igt.h" +/** + * SUBTEST: alpha-%s + * Description: Test to %arg[1] + * Driver requirement: i915, xe + * Functionality: plane + * Mega feature: General Display Features + * Test category: functionality test + * + * arg[1]: + * + * @7efc: validate alpha values 0x7e and 0xfc are swappable on + * pre-multiplied blend mode. + * @basic: basic plane alpha properties. + * @opaque-fb: alpha properties with opaque fb. + * @transparent-fb: alpha property with transparent fb. + */ + +/** + * SUBTEST: coverage-vs-premult-vs-constant + * Description: Tests pipe coverage blending properties. + * Driver requirement: i915, xe + * Functionality: plane + * Mega feature: General Display Features + * Test category: functionality test + * + * SUBTEST: coverage-7efc + * Description: Uses alpha values 0x7e and 0xfc to validate fg.alpha and + * plane_alpha are swappable on coverage blend mode. + * Driver requirement: i915, xe + * Functionality: plane + * Mega feature: General Display Features + * Test category: functionality test + * + * SUBTEST: constant-alpha-%s + * Description: Tests plane alpha and blending properties with %arg[1]. + * Driver requirement: i915, xe + * Functionality: plane + * Mega feature: General Display Features + * Test category: functionality test + * + * arg[1]: + * + * @max: maximum alpha value + * @mid: medium alpha value + * @min: minimum alpha value + */ + IGT_TEST_DESCRIPTION("Test plane alpha and blending mode properties"); static bool extended; @@ -482,52 +530,6 @@ static void coverage_premult_constant(data_t *data, enum pipe pipe, igt_plane_t igt_pipe_crc_stop(data->pipe_crc); } -/** - * SUBTEST: alpha-%s - * Description: Test to %arg[1] - * Driver requirement: i915, xe - * Functionality: plane - * Mega feature: General Display Features - * Test category: functionality test - * - * arg[1]: - * - * @7efc: validate alpha values 0x7e and 0xfc are swappable on - * pre-multiplied blend mode. - * @basic: basic plane alpha properties. - * @opaque-fb: alpha properties with opaque fb. - * @transparent-fb: alpha property with transparent fb. - */ - -/** - * SUBTEST: coverage-vs-premult-vs-constant - * Description: Tests pipe coverage blending properties. - * Driver requirement: i915, xe - * Functionality: plane - * Mega feature: General Display Features - * Test category: functionality test - * - * SUBTEST: coverage-7efc - * Description: Uses alpha values 0x7e and 0xfc to validate fg.alpha and - * plane_alpha are swappable on coverage blend mode. - * Driver requirement: i915, xe - * Functionality: plane - * Mega feature: General Display Features - * Test category: functionality test - * - * SUBTEST: constant-alpha-%s - * Description: Tests plane alpha and blending properties with %arg[1]. - * Driver requirement: i915, xe - * Functionality: plane - * Mega feature: General Display Features - * Test category: functionality test - * - * arg[1]: - * - * @max: maximum alpha value - * @mid: medium alpha value - * @min: minimum alpha value - */ static void run_test_on_pipe_planes(data_t *data, enum pipe pipe, igt_output_t *output, bool blend, bool must_multiply, void(*test)(data_t *, enum pipe, igt_plane_t *)) |