From patchwork Mon Nov 14 09:59:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gustavo Padovan X-Patchwork-Id: 9426957 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8799360471 for ; Mon, 14 Nov 2016 10:00:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D8A1286D4 for ; Mon, 14 Nov 2016 10:00:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 712C0286FE; Mon, 14 Nov 2016 10:00:14 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3BED7286D4 for ; Mon, 14 Nov 2016 10:00:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 801B66E3A4; Mon, 14 Nov 2016 09:59:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3F2446E392; Mon, 14 Nov 2016 09:59:45 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id 144so5963428pfv.0; Mon, 14 Nov 2016 01:59:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=p3ZF3ShKGXfMfF9jbxg8idHh0pLLA4Wv+9FJVx5OlM0=; b=MZYZj0d7kQ5CwFJSB8bevhUawjH/sR+QIysrJdivcxki5OQWcncDFRvR7HCjtOKu7U uWb8ipZJalnXGXV7oUg8qcOjWhIWUUXrnObhHAeYtYvLjooyaLS0/ffmFodi4QVnqYft bOuzZCltuZI1YckOtl18UXQwVaNmQxFDSOaGHzLgAlegx8aER1rhyDvuimo1BmK10O0z 0PKBeVrHDNIsiE2/RIhJM31JCHebVAk/tXauIeayWREbx/VOqPbpHIyjwMTVxy3eg5jq zTeV0oN7D7bGv6tWRzUe4ui5Z6INY5rdckGHBEszCBf1w7etXAWm5shSabq8qVYT8t3z AZiQ== X-Gm-Message-State: ABUngve4RK8KGsY5maz5AOGB/GwDPNKKQTkNVuK0lW0/yCoBo9QnfR/hF/bPBzoVTpQEMQ== X-Received: by 10.99.170.14 with SMTP id e14mr55838047pgf.119.1479117584638; Mon, 14 Nov 2016 01:59:44 -0800 (PST) Received: from jade.nodan1.kt.home.ne.jp (202-72-64-164.koalanet.ne.jp. [202.72.64.164]) by smtp.gmail.com with ESMTPSA id p125sm14320235pfg.33.2016.11.14.01.59.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Nov 2016 01:59:44 -0800 (PST) From: Gustavo Padovan To: intel-gfx@lists.freedesktop.org Subject: [PATCH 02/12] tests/kms_atomic_transition: don't assume max pipes Date: Mon, 14 Nov 2016 18:59:16 +0900 Message-Id: <1479117566-17709-5-git-send-email-gustavo@padovan.org> X-Mailer: git-send-email 2.5.5 In-Reply-To: <1479117566-17709-1-git-send-email-gustavo@padovan.org> References: <1479117566-17709-1-git-send-email-gustavo@padovan.org> Cc: Gustavo Padovan , dri-devel@lists.freedesktop.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Gustavo Padovan Signed-off-by: Gustavo Padovan --- tests/kms_atomic_transition.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_atomic_transition.c b/tests/kms_atomic_transition.c index e693c88..8b26b53 100644 --- a/tests/kms_atomic_transition.c +++ b/tests/kms_atomic_transition.c @@ -404,7 +404,7 @@ static void run_modeset_tests(igt_display_t *display, int howmany, bool nonblock { struct igt_fb fbs[2]; int i, j; - unsigned iter_max = 1 << I915_MAX_PIPES; + unsigned iter_max = 1 << display->n_pipes; igt_pipe_crc_t *pipe_crcs[I915_MAX_PIPES]; igt_output_t *output; unsigned width = 0, height = 0;