From patchwork Sun Jan 13 02:10:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yi Sun X-Patchwork-Id: 1969571 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 547913FE37 for ; Sun, 13 Jan 2013 02:26:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 43278E684C for ; Sat, 12 Jan 2013 18:26:36 -0800 (PST) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C27AE5C78 for ; Sat, 12 Jan 2013 18:26:28 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 12 Jan 2013 18:26:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.84,460,1355126400"; d="scan'208";a="245823499" Received: from sunyi-pc.sh.intel.com ([10.239.13.42]) by orsmga001.jf.intel.com with ESMTP; 12 Jan 2013 18:26:26 -0800 From: Yi Sun To: intel-gfx@lists.freedesktop.org Date: Sun, 13 Jan 2013 10:10:24 +0800 Message-Id: <1358043024-17455-1-git-send-email-yi.sun@intel.com> X-Mailer: git-send-email 1.7.6.4 Subject: [Intel-gfx] [PATCH] tests/testdisplay.c: Fix the issue which don't display anything until '-o' given. X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Signed-off-by: Yi Sun diff --git a/tests/testdisplay.c b/tests/testdisplay.c index 7aef940..f2711ae 100644 --- a/tests/testdisplay.c +++ b/tests/testdisplay.c @@ -598,7 +598,7 @@ int update_display(void) /* Find any connected displays */ for (c = 0; c < resources->count_connectors; c++) { connectors[c].id = resources->connectors[c]; - if ( connectors[c].id != specified_disp_id ) + if ( only_one_mode == 1 && connectors[c].id != specified_disp_id ) continue; set_mode(&connectors[c]);