From 6de5b0611245c4949b5655890b47905eea71c34a Mon Sep 17 00:00:00 2001 From: Paulo Zanoni Date: Fri, 14 Aug 2015 10:43:21 -0300 Subject: [PATCH] kms_frontbuffer_tracking: remove duplicated pairs on multidraw If we already tested the combination of m1+m2, don't test m2+m1 later: the drawing pattern used already has 4 squares, so we're already testing the "m2 followed by m1" case. This should reduce the test time from about 60s to about 30s. Signed-off-by: Paulo Zanoni --- tests/kms_frontbuffer_tracking.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index e9f1b279..c274ea28 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -1939,9 +1939,7 @@ static void multidraw_subtest(const struct test_mode *t) target = pick_target(t, params); for (m1 = 0; m1 < IGT_DRAW_METHOD_COUNT; m1++) { - for (m2 = 0; m2 < IGT_DRAW_METHOD_COUNT; m2++) { - if (m1 == m2) - continue; + for (m2 = m1 + 1; m2 < IGT_DRAW_METHOD_COUNT; m2++) { igt_debug("Methods %s and %s\n", igt_draw_get_method_name(m1),