From: Daniel Vetter Subject: Re: [PATCH] tests/testdisplay.c: Fix the issue which don't display anything until '-o' given. Date: Mon, 14 Jan 2013 15:32:24 +0100 Message-ID: <20130114143224.GA5790@phenom.ffwll.local> References: <1358043024-17455-1-git-send-email-yi.sun@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by gabe.freedesktop.org (Postfix) with ESMTP id 52B97E5C3B for ; Mon, 14 Jan 2013 06:30:35 -0800 (PST) Received: by mail-wi0-f172.google.com with SMTP id o1so1285272wic.5 for ; Mon, 14 Jan 2013 06:30:34 -0800 (PST) Content-Disposition: inline In-Reply-To: <1358043024-17455-1-git-send-email-yi.sun@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: Yi Sun Cc: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org On Sun, Jan 13, 2013 at 10:10:24AM +0800, Yi Sun wrote: > Signed-off-by: Yi Sun Applied, thanks for the patch. -Daniel > > 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]); > -- > 1.7.6.4 > > _______________________________________________ > Intel-gfx mailing list > Intel-gfx@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/intel-gfx -- Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch