From: Mika Kahola <mika.kahola@intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 1/2] tests/kms_ccs: Add debug information on format modifier
Date: Tue, 19 May 2020 12:48:02 +0300 [thread overview]
Message-ID: <20200519094803.8687-2-mika.kahola@intel.com> (raw)
In-Reply-To: <20200519094803.8687-1-mika.kahola@intel.com>
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>
---
tests/kms_ccs.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
diff --git a/tests/kms_ccs.c b/tests/kms_ccs.c
index bc34aec5..c23b4e44 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);
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2020-05-19 9:48 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-19 9:48 [igt-dev] [RFC PATCH i-g-t 0/2] tests/kms_ccs: CCS Clear Color Test Mika Kahola
2020-05-19 9:48 ` Mika Kahola [this message]
2020-05-27 22:35 ` [igt-dev] [PATCH i-g-t 1/2] tests/kms_ccs: Add debug information on format modifier Matt Roper
2020-05-19 9:48 ` [igt-dev] [PATCH i-g-t 2/2] tests/kms_ccs: CCS Clear Color test Mika Kahola
2020-05-27 22:35 ` Matt Roper
2020-06-01 10:25 ` Kahola, Mika
2020-05-19 10:37 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/kms_ccs: CCS Clear Color test (rev2) Patchwork
2020-05-19 14:27 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2020-05-20 8:27 ` Kahola, Mika
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200519094803.8687-2-mika.kahola@intel.com \
--to=mika.kahola@intel.com \
--cc=igt-dev@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox