[igt-dev] [i-g-t V7 13/81] tests/i915/kms_ccs: Document each subtest for testplan

Bhanuprakash Modem bhanuprakash.modem at intel.com
Tue Aug 15 16:47:07 UTC 2023


Add documentation for all kms tests which is used by IGT testplan
documentation.

V2: - Include mtl ccs tests
V3: - Update Functionality
V4: - Driver requirement: s/any/i915, xe/

Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem at intel.com>
Reviewed-by: Karthik B S <karthik.b.s at intel.com>
---
 tests/i915/kms_ccs.c | 127 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 127 insertions(+)

diff --git a/tests/i915/kms_ccs.c b/tests/i915/kms_ccs.c
index f04552dd7..976aedb06 100644
--- a/tests/i915/kms_ccs.c
+++ b/tests/i915/kms_ccs.c
@@ -22,10 +22,137 @@
  *
  */
 
+/**
+ * TEST: kms ccs
+ * Category: Display
+ * Description: Test render compression (RC), in which the main surface is
+ *              complemented by a color control surface (CCS) that the display
+ *              uses to interpret the compressed data.
+ */
 #include "igt.h"
 
 #include "i915/gem_create.h"
 
+/**
+ * SUBTEST: %s-%s-%s
+ * Description: Test %arg[2] with given %arg[3] modifier
+ * Driver requirement: i915, xe
+ * Functionality: ccs, tiling
+ * Mega feature: General Display Features
+ * Run type: FULL
+ * Test category: functionality test
+ *
+ * arg[1]:
+ *
+ * @pipe-A:                    Pipe A
+ * @pipe-B:                    Pipe B
+ * @pipe-C:                    Pipe C
+ * @pipe-D:                    Pipe D
+ * @pipe-E:                    Pipe E
+ * @pipe-F:                    Pipe F
+ * @pipe-G:                    Pipe G
+ * @pipe-H:                    Pipe H
+ *
+ * arg[2]:
+ *
+ * @bad-aux-stride:            Bad AUX stride
+ * @ccs-on-another-bo:         CCS with different BO
+ * @missing-ccs-buffer:        Missing CCS buffer
+ *
+ * arg[3]:
+ *
+ * @y_tiled_ccs:               Y tiled ccs
+ * @y_tiled_gen12_mc_ccs:      Y tiled gen12 mc ccs
+ * @y_tiled_gen12_rc_ccs:      Y tiled gen12 rc ccs
+ * @y_tiled_gen12_rc_ccs_cc:   Y tiled gen12 rc ccs cc
+ * @yf_tiled_ccs:              YF tiled ccs
+ * @4_tiled_mtl_mc_ccs:        4 tiled mtl mc ccs
+ * @4_tiled_mtl_rc_ccs:        4 tiled mtl rc ccs
+ * @4_tiled_mtl_rc_ccs_cc:     4 tiled mtl rc ccs cc
+ */
+
+/**
+ * SUBTEST: %s-%s-%s
+ * Description: Test %arg[2] with %arg[3] modifier
+ * Driver requirement: i915, xe
+ * Functionality: ccs, tiling
+ * Mega feature: General Display Features
+ * Run type: FULL
+ * Test category: functionality test
+ *
+ * arg[1]:
+ *
+ * @pipe-A:                      Pipe A
+ * @pipe-B:                      Pipe B
+ * @pipe-C:                      Pipe C
+ * @pipe-D:                      Pipe D
+ * @pipe-E:                      Pipe E
+ * @pipe-F:                      Pipe F
+ * @pipe-G:                      Pipe G
+ * @pipe-H:                      Pipe H
+ *
+ * arg[2]:
+ *
+ * @bad-pixel-format:            Bad pixel format
+ * @crc-primary-basic:           Primary plane CRC compatibility
+ * @crc-sprite-planes-basic:     Sprite plane CRC compatability
+ * @random-ccs-data:             Random CCS data
+ *
+ * arg[3]:
+ *
+ * @4_tiled_dg2_mc_ccs:        4 tiled mc ccs
+ * @4_tiled_dg2_rc_ccs:        4 tiled dg2 rc ccs
+ * @4_tiled_dg2_rc_ccs_cc:     4 tiled dg2 rc ccs cc
+ * @4_tiled_mtl_mc_ccs:        4 tiled mtl mc ccs
+ * @4_tiled_mtl_rc_ccs:        4 tiled mtl rc ccs
+ * @4_tiled_mtl_rc_ccs_cc:     4 tiled mtl rc ccs cc
+ * @y_tiled_ccs:               Y tiled ccs
+ * @y_tiled_gen12_mc_ccs:      Y tiled gen12 mc ccs
+ * @y_tiled_gen12_rc_ccs:      Y tiled gen12 rc ccs
+ * @y_tiled_gen12_rc_ccs_cc:   Y tiled gen12 rc ccs cc
+ * @yf_tiled_ccs:              YF tiled ccs
+ */
+
+/**
+ * SUBTEST: %s-%s-%s
+ * Description: Test %arg[2] with %arg[3] modifier
+ * Driver requirement: i915, xe
+ * Functionality: ccs, rotation, tiling
+ * Mega feature: General Display Features
+ * Run type: FULL
+ * Test category: functionality test
+ *
+ * arg[1]:
+ *
+ * @pipe-A:                      Pipe A
+ * @pipe-B:                      Pipe B
+ * @pipe-C:                      Pipe C
+ * @pipe-D:                      Pipe D
+ * @pipe-E:                      Pipe E
+ * @pipe-F:                      Pipe F
+ * @pipe-G:                      Pipe G
+ * @pipe-H:                      Pipe H
+ *
+ * arg[2]:
+ *
+ * @bad-rotation-90:             90 degree rotation
+ * @crc-primary-rotation-180:    180 degree rotation
+ *
+ * arg[3]:
+ *
+ * @4_tiled_dg2_mc_ccs:        4 tiled mc ccs
+ * @4_tiled_dg2_rc_ccs:        4 tiled dg2 rc ccs
+ * @4_tiled_dg2_rc_ccs_cc:     4 tiled dg2 rc ccs cc
+ * @4_tiled_mtl_mc_ccs:        4 tiled mtl mc ccs
+ * @4_tiled_mtl_rc_ccs:        4 tiled mtl rc ccs
+ * @4_tiled_mtl_rc_ccs_cc:     4 tiled mtl rc ccs cc
+ * @y_tiled_ccs:               Y tiled ccs
+ * @y_tiled_gen12_mc_ccs:      Y tiled gen12 mc ccs
+ * @y_tiled_gen12_rc_ccs:      Y tiled gen12 rc ccs
+ * @y_tiled_gen12_rc_ccs_cc:   Y tiled gen12 rc ccs cc
+ * @yf_tiled_ccs:              YF tiled ccs
+ */
+
 #define SDR_PLANE_BASE	3
 
 IGT_TEST_DESCRIPTION("Test render compression (RC), in which the main surface "
-- 
2.40.0



More information about the igt-dev mailing list