public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v1] tests/kms_plane_scaling: Use selective modes for scaling checks
@ 2026-03-16 18:52 Naladala Ramanaidu
  2026-03-17  3:47 ` S, Sowmiya
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Naladala Ramanaidu @ 2026-03-16 18:52 UTC (permalink / raw)
  To: igt-dev; +Cc: karthik.b.s, swati2.sharma, Naladala Ramanaidu

Update the scaling test to try only three representative modes:
the first, one from the middle, and the last. This decreases test
runtime while maintaining adequate coverage.

Signed-off-by: Naladala Ramanaidu <ramanaidu.naladala@intel.com>
---
 tests/kms_plane_scaling.c | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c
index ab619fb2b..33546d5bf 100644
--- a/tests/kms_plane_scaling.c
+++ b/tests/kms_plane_scaling.c
@@ -584,9 +584,15 @@ check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,
 	int commit_ret;
 	int w, h;
 	int width, height;
+	uint32_t mod_count = output->config.connector->count_modes;
+	uint32_t index[3] = {0, mod_count/2, mod_count - 1};
 
-	for_each_connector_mode(output) {
-		mode = &output->config.connector->modes[j__];
+	for (int j = 0; j < 3; j++) {
+
+		if ((mod_count <= 2) && (j > 1))
+			break;
+
+		mode = &output->config.connector->modes[index[j]];
 		igt_output_override_mode(output, mode);
 		igt_debug("Trying mode %dx%d\n",
 			  mode->hdisplay, mode->vdisplay);
-- 
2.43.0


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

end of thread, other threads:[~2026-03-20  8:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-16 18:52 [PATCH i-g-t v1] tests/kms_plane_scaling: Use selective modes for scaling checks Naladala Ramanaidu
2026-03-17  3:47 ` S, Sowmiya
2026-03-17 13:26 ` ✓ Xe.CI.BAT: success for " Patchwork
2026-03-17 14:50 ` ✓ i915.CI.BAT: " Patchwork
2026-03-18 16:13 ` ✓ i915.CI.Full: " Patchwork
2026-03-18 21:41 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-03-20  8:26 ` [PATCH i-g-t v1] " Sharma, Swati2

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