public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Jim Bride <jim.bride@linux.intel.com>
To: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t] demos/intel_sprite_on: Fix connector iteration bug
Date: Wed, 15 Jun 2016 10:24:37 -0700	[thread overview]
Message-ID: <20160615172437.GA30143@shiv> (raw)
In-Reply-To: <20160615121727.GA14815@mcvlad-wk.rb.intel.com>

On Wed, Jun 15, 2016 at 03:17:28PM +0300, Marius Vlad wrote:
> On Mon, Jun 13, 2016 at 07:51:06AM -0700, Jim Bride wrote:
> > Instead of looping until the first disconnected port is found,
> > now go through all possible connectors, drawing the sprite on
> > any connected display.
> > 
> > Signed-off-by: Jim Bride <jim.bride@linux.intel.com>
> > ---
> >  demos/intel_sprite_on.c | 6 ++----
> >  1 file changed, 2 insertions(+), 4 deletions(-)
> > 
> > diff --git a/demos/intel_sprite_on.c b/demos/intel_sprite_on.c
> > index 6dddded..ff40e3c 100644
> > --- a/demos/intel_sprite_on.c
> > +++ b/demos/intel_sprite_on.c
> > @@ -563,10 +563,8 @@ static void ricochet(int tiled, int sprite_w, int sprite_h,
> >  
> >  		// Find the native (preferred) display mode
> >  		connector_find_preferred_mode(gfx_fd, gfx_resources, &curr_connector);
> > -		if (curr_connector.mode_valid == 0) {
> > -			printf("No valid preferred mode detected\n");
> > -			goto out;
> > -		}
> > +		if (curr_connector.mode_valid == 0)
> > +			continue;
> 
> Could you also add that info message when all connectors are disconnected?
> 
> Like checking the index is equal w/ the number of connectors available?

Sure.  New version coming in a little bit.

Jim

> >  
> >  		// Determine if sprite hardware is available on pipe
> >  		// associated with this connector.
> > -- 
> > 2.7.4
> > 
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/intel-gfx


_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2016-06-15 17:24 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-13 14:51 [PATCH i-g-t] demos/intel_sprite_on: Fix connector iteration bug Jim Bride
2016-06-15 12:17 ` Marius Vlad
2016-06-15 17:24   ` Jim Bride [this message]
2016-06-15 17:48 ` [PATCH v2 " Jim Bride
2016-07-04 14:34   ` Marius Vlad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160615172437.GA30143@shiv \
    --to=jim.bride@linux.intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox