Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] tests/intel/kms_frontbuffer_tracking: Use small modes on simulation
@ 2026-10-20 14:38 Pranay Samala
  2026-10-20 16:27 ` ✓ Xe.CI.BAT: success for " Patchwork
  2026-10-20 16:52 ` ✗ i915.CI.BAT: failure " Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Pranay Samala @ 2026-10-20 14:38 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, sameer.lattannavar, pranay.samala

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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-10-20 16:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-20 14:38 [PATCH i-g-t] tests/intel/kms_frontbuffer_tracking: Use small modes on simulation Pranay Samala
2026-10-20 16:27 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-10-20 16:52 ` ✗ i915.CI.BAT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox