From: Daniel Vetter Subject: [PATCH] tests/kms_render: don't loop through modes Date: Thu, 15 May 2014 16:36:32 +0200 Message-ID: <1400164592-17645-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f45.google.com (mail-ee0-f45.google.com [74.125.83.45]) by gabe.freedesktop.org (Postfix) with ESMTP id 695BB6EEAC for ; Thu, 15 May 2014 09:00:08 -0700 (PDT) Received: by mail-ee0-f45.google.com with SMTP id d49so805678eek.32 for ; Thu, 15 May 2014 09:00:07 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org We kinda have testdisplay for this ... and doing this tends to take forever. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=77709 Signed-off-by: Daniel Vetter --- tests/kms_render.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/kms_render.c b/tests/kms_render.c index 380bb3705d14..d9c0a58537f9 100644 --- a/tests/kms_render.c +++ b/tests/kms_render.c @@ -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) -- 1.8.1.4