From patchwork Wed Apr 20 14:11:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Foss X-Patchwork-Id: 8890201 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E4788BF29F for ; Wed, 20 Apr 2016 14:11:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 178A1201C0 for ; Wed, 20 Apr 2016 14:11:14 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 61EDE2024C for ; Wed, 20 Apr 2016 14:11:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 218606E9F1; Wed, 20 Apr 2016 14:11:10 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by gabe.freedesktop.org (Postfix) with ESMTPS id 171196E9F0 for ; Wed, 20 Apr 2016 14:11:09 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: robertfoss) with ESMTPSA id 7429526697B From: robert.foss@collabora.com To: daniel.vetter@ffwll.ch Date: Wed, 20 Apr 2016 10:11:04 -0400 Message-Id: <1461161464-10230-1-git-send-email-robert.foss@collabora.com> X-Mailer: git-send-email 2.5.0 Cc: intel-gfx@lists.freedesktop.org Subject: [Intel-gfx] [PATCH i-g-t] kms_atomic: Fix crtc_id comparison failing. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Robert Foss Fixed ctrc_id comparison failing due to bad initialization of crtc variable. Signed-off-by: Robert Foss --- tests/kms_atomic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/kms_atomic.c b/tests/kms_atomic.c index 13a5db1..f27ee46 100644 --- a/tests/kms_atomic.c +++ b/tests/kms_atomic.c @@ -1361,7 +1361,7 @@ igt_main igt_subtest("atomic_invalid_params") { struct kms_atomic_state *scratch = atomic_state_dup(current); - struct kms_atomic_crtc_state *crtc = &scratch->crtcs[0]; + struct kms_atomic_crtc_state *crtc = find_crtc(scratch, true); struct kms_atomic_plane_state *plane = find_plane(scratch, NUM_PLANE_TYPE_PROPS, crtc); struct kms_atomic_connector_state *conn =