summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMika Kahola <mika.kahola@intel.com>2020-05-14 12:35:03 +0300
committerMika Kahola <mika.kahola@intel.com>2020-11-23 09:51:39 +0200
commit15890fd59055f043e91fcda9013ec4827d4cb07e (patch)
tree4db20a6f81cf0eb0bb9f124a7c8f6a361c5313b1
parent76b7d1ecf6a3c0a5a538146bb055d0eb5fe232d0 (diff)
tests/kms_ccs: Add debug information on format modifier
We could benefit on information on what format modifier is in use when running the test. This in mind, let's add informative string along with the list of ccs modifiers. Signed-off-by: Mika Kahola <mika.kahola@intel.com> Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
-rw-r--r--tests/kms_ccs.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index b60e4908..53abecce 100644
--- a/tests/kms_ccs.c
+++ b/tests/kms_ccs.c
@@ -81,12 +81,15 @@ static const uint32_t formats[] = {
DRM_FORMAT_P016,
};
-static const uint64_t ccs_modifiers[] = {
- LOCAL_I915_FORMAT_MOD_Y_TILED_CCS,
- LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS,
- LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS,
- LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC,
- LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS,
+static const struct {
+ uint64_t modifier;
+ const char *str;
+} ccs_modifiers[5] = {
+ {LOCAL_I915_FORMAT_MOD_Y_TILED_CCS, "LOCAL_I915_FORMAT_MOD_Y_TILED_CCS"},
+ {LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS, "LOCAL_I915_FORMAT_MOD_Yf_TILED_CCS"},
+ {LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS, "LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS"},
+ {LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC, "LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_RC_CCS_CC"},
+ {LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS, "LOCAL_I915_FORMAT_MOD_Y_TILED_GEN12_MC_CCS"},
};
static bool check_ccs_planes;
@@ -422,7 +425,8 @@ static int __test_output(data_t *data)
for (i = 0; i < ARRAY_SIZE(ccs_modifiers); i++) {
int j;
- data->ccs_modifier = ccs_modifiers[i];
+ data->ccs_modifier = ccs_modifiers[i].modifier;
+ igt_debug("Modifier in use: %s\n", ccs_modifiers[i].str);
for (j = 0; j < ARRAY_SIZE(formats); j++) {
data->format = formats[j];
valid_tests += test_ccs(data);