From: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
To: igt-dev@lists.freedesktop.org, karthik.b.s@intel.com
Subject: [igt-dev] [i-g-t] tests/i915/kms_draw_crc: Create separate subtest for each draw method
Date: Thu, 9 Feb 2023 16:14:22 +0530 [thread overview]
Message-ID: <20230209104422.1645753-1-bhanuprakash.modem@intel.com> (raw)
Instead of clubbing all draw methods, have a separate subtest for
each draw method.
Fixes: 9e71c27c6 (tests/i915/kms_draw_crc: Convert tests to dynamic)
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
---
tests/i915/kms_draw_crc.c | 29 ++++++++++-------------------
1 file changed, 10 insertions(+), 19 deletions(-)
diff --git a/tests/i915/kms_draw_crc.c b/tests/i915/kms_draw_crc.c
index 64d3b937e..701de8ecb 100644
--- a/tests/i915/kms_draw_crc.c
+++ b/tests/i915/kms_draw_crc.c
@@ -286,32 +286,23 @@ igt_main
igt_fixture
setup_environment();
- igt_describe("This subtest verfies igt_draw library works "
- "with different modifiers, DRM_FORMATS, DRAW_METHODS.");
- igt_subtest_with_dynamic("draw-method") {
- for (format_idx = 0; format_idx < ARRAY_SIZE(formats); format_idx++) {
- /* 10-bit & 16-bit formats are bit slow, ignore in pre-si. */
- if (igt_run_in_simulation() &&
- formats[format_idx] != DRM_FORMAT_XRGB8888)
- continue;
-
- for (method = 0; method < IGT_DRAW_METHOD_COUNT; method++) {
+ for (method = 0; method < IGT_DRAW_METHOD_COUNT; method++) {
+ igt_describe_f("Verify that igt draw library works for the draw "
+ "method (%s) with different modifiers & DRM formats.",
+ igt_draw_get_method_name(method));
+ igt_subtest_with_dynamic_f("draw-method-%s", igt_draw_get_method_name(method)) {
+ igt_skip_on(method == IGT_DRAW_MMAP_WC && !gem_mmap__has_wc(drm_fd));
+ igt_skip_on(method == IGT_DRAW_MMAP_GTT && !gem_has_mappable_ggtt(drm_fd));
+
+ for (format_idx = 0; format_idx < ARRAY_SIZE(formats); format_idx++) {
for (modifier_idx = 0; modifier_idx < ARRAY_SIZE(modifiers); modifier_idx++) {
modifier = modifiers[modifier_idx];
if (!igt_display_has_format_mod(&display, formats[format_idx], modifier))
continue;
- if (method == IGT_DRAW_MMAP_WC && !gem_mmap__has_wc(drm_fd))
- continue;
-
- if (method == IGT_DRAW_MMAP_GTT &&
- !gem_has_mappable_ggtt(drm_fd))
- continue;
-
- igt_dynamic_f("%s-%s-%s",
+ igt_dynamic_f("%s-%s",
format_str(format_idx),
- igt_draw_get_method_name(method),
modifier_str(modifier_idx))
draw_method_subtest(method, format_idx,
modifier);
--
2.39.0
next reply other threads:[~2023-02-09 10:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-09 10:44 Bhanuprakash Modem [this message]
2023-02-09 11:36 ` [igt-dev] ✓ Fi.CI.BAT: success for tests/i915/kms_draw_crc: Create separate subtest for each draw method Patchwork
2023-02-10 3:23 ` [igt-dev] [i-g-t] " Karthik B S
2023-02-10 8:38 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork
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=20230209104422.1645753-1-bhanuprakash.modem@intel.com \
--to=bhanuprakash.modem@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=karthik.b.s@intel.com \
/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