Skip to contentSkip to conversation

tests/kms_render: don't loop through modes

PATCH New Daniel Vetter 1 participant 1 message May 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/kms_render: don't loop through modes

We kinda have testdisplay for this ... and doing this tends to take forever.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77709

---
 tests/kms_render.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)
tests/kms_render.c +4 -8
index 380bb3705d14..d9c0a58537f9 100644
@@ -178,14 +178,10 @@ static void test_connector(const char *test_name,
 	int i;
 
 	igt_get_all_formats(&formats, &format_count);
-	for (i = 0; i < cconf->connector->count_modes; i++) {
-		int j;
-
-		for (j = 0; j < format_count; j++)
-			test_format(test_name,
-				    cconf, &cconf->connector->modes[i],
-				    formats[j], flags);
-	}
+	for (i = 0; i < format_count; i++)
+		test_format(test_name,
+			    cconf, &cconf->connector->modes[i],
+			    formats[i], flags);
 }
 
 static int run_test(const char *test_name, enum test_flags flags)
Signature · 1 line
1.8.1.4