summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-08-14 10:43:21 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-08-14 15:32:36 -0300
commit6de5b0611245c4949b5655890b47905eea71c34a (patch)
treea5aa3f09ed2435a68f37799275a9a28bfe1fa77d /tests
parenta2904ead7487c6eba5d3ea8b93d7a9f45e883355 (diff)
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 <paulo.r.zanoni@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_frontbuffer_tracking.c4
1 files changed, 1 insertions, 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),