From: Pranay Samala <pranay.samala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: karthik.b.s@intel.com, sameer.lattannavar@intel.com,
pranay.samala@intel.com
Subject: [PATCH i-g-t] tests/intel/kms_frontbuffer_tracking: Use small modes on simulation
Date: Tue, 20 Oct 2026 20:08:30 +0530 [thread overview]
Message-ID: <20261020143830.772865-1-pranay.samala@intel.com> (raw)
Due to slowness of drawing on simulation, use the connector's
smallest mode and draw only one rect in draw subtests when
running on simulation.
Signed-off-by: Pranay Samala <pranay.samala@intel.com>
---
tests/intel/kms_frontbuffer_tracking.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/tests/intel/kms_frontbuffer_tracking.c b/tests/intel/kms_frontbuffer_tracking.c
index 8d5afdac2..3f345f644 100644
--- a/tests/intel/kms_frontbuffer_tracking.c
+++ b/tests/intel/kms_frontbuffer_tracking.c
@@ -2997,7 +2997,7 @@ static bool op_disables_psr(const struct test_mode *t,
*/
static void draw_subtest(const struct test_mode *t)
{
- int r;
+ int r, n_rects;
int assertions = 0;
struct draw_pattern_info *pattern;
struct modeset_params *params = pick_params(t);
@@ -3043,7 +3043,9 @@ static void draw_subtest(const struct test_mode *t)
prepare_subtest(t, pattern);
target = pick_target(t, params);
- for (r = 0; r < pattern->n_rects; r++) {
+ n_rects = in_simulation ? 1 : pattern->n_rects;
+
+ for (r = 0; r < n_rects; r++) {
igt_debug("Drawing rect %d\n", r);
draw_rect(pattern, target, t->method, r);
update_wanted_crc(t, &pattern->crcs[t->format][r]);
@@ -4373,8 +4375,12 @@ int igt_main_args("", long_options, help_str, opt_handler, NULL)
if (opt.tiling == TILING_AUTOSELECT)
opt.tiling = drm.display_ver >= 30 ? TILING_4 : TILING_X;
- setup_environment();
+ /* Full-size modes are too slow on simulation, use the smallest mode. */
in_simulation = igt_run_in_simulation();
+ if (in_simulation)
+ opt.small_modes = true;
+
+ setup_environment();
}
for (t.feature = 0; t.feature < FEATURE_COUNT; t.feature++) {
--
2.53.0
next reply other threads:[~2026-10-20 14:39 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-20 14:38 Pranay Samala [this message]
2026-10-20 16:27 ` ✓ Xe.CI.BAT: success for tests/intel/kms_frontbuffer_tracking: Use small modes on simulation Patchwork
2026-10-20 16:52 ` ✗ i915.CI.BAT: failure " 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=20261020143830.772865-1-pranay.samala@intel.com \
--to=pranay.samala@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=karthik.b.s@intel.com \
--cc=sameer.lattannavar@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