All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mika Kahola <mika.kahola@intel.com>
To: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>,
	intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 2/3] lib/igt_kms: Remove vblank wait after plane update.
Date: Fri, 04 Aug 2017 11:07:46 +0300	[thread overview]
Message-ID: <1501834066.16922.37.camel@intel.com> (raw)
In-Reply-To: <20170802102919.13340-2-maarten.lankhorst@linux.intel.com>

On Wed, 2017-08-02 at 12:29 +0200, Maarten Lankhorst wrote:
> With the conversion to atomic, this is already handled in the core.
> 
> Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> ---
>  lib/igt_kms.c | 15 ---------------
>  lib/igt_kms.h |  1 -
>  2 files changed, 16 deletions(-)
> 
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index 6390229f1546..14e2701c3afd 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -2374,8 +2374,6 @@ static int
> igt_primary_plane_commit_legacy(igt_plane_t *primary,
>  
>  	CHECK_RETURN(ret, fail_on_error);
>  
> -	primary->pipe->enabled = (fb_id != 0);
> -
How was this related to vblank wait removal?

>  	return 0;
>  }
>  
> @@ -2413,10 +2411,8 @@ static int igt_pipe_commit(igt_pipe_t *pipe,
>  			   enum igt_commit_style s,
>  			   bool fail_on_error)
>  {
> -	igt_display_t *display = pipe->display;
>  	int i;
>  	int ret;
> -	bool need_wait_for_vblank = false;
>  
>  	if (pipe->background_changed) {
>  		igt_crtc_set_property(pipe, pipe-
> >background_property,
> @@ -2435,21 +2431,10 @@ static int igt_pipe_commit(igt_pipe_t *pipe,
>  	for (i = 0; i < pipe->n_planes; i++) {
>  		igt_plane_t *plane = &pipe->planes[i];
>  
> -		if (plane->fb_changed || plane->position_changed ||
> plane->size_changed)
> -			need_wait_for_vblank = true;
> -
>  		ret = igt_plane_commit(plane, pipe, s,
> fail_on_error);
>  		CHECK_RETURN(ret, fail_on_error);
>  	}
>  
> -	/*
> -	 * If the crtc is enabled, wait until the next vblank before
> returning
> -	 * if we made changes to any of the planes.
> -	 */
> -	if (need_wait_for_vblank && pipe->enabled) {
> -		igt_wait_for_vblank(display->drm_fd, pipe->pipe);
> -	}
> -
>  	return 0;
>  }
>  
> diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> index 35428f3e9675..d18a92600933 100644
> --- a/lib/igt_kms.h
> +++ b/lib/igt_kms.h
> @@ -323,7 +323,6 @@ typedef struct {
>  struct igt_pipe {
>  	igt_display_t *display;
>  	enum pipe pipe;
> -	bool enabled;
>  
>  	int n_planes;
>  	int plane_cursor;
-- 
Mika Kahola - Intel OTC

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

  reply	other threads:[~2017-08-04  8:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-02 10:29 [PATCH i-g-t 1/3] lib/igt_aux: Export statistics of signal helper Maarten Lankhorst
2017-08-02 10:29 ` [PATCH i-g-t 2/3] lib/igt_kms: Remove vblank wait after plane update Maarten Lankhorst
2017-08-04  8:07   ` Mika Kahola [this message]
2017-08-07  8:42     ` Maarten Lankhorst
2017-08-08  9:30       ` Mika Kahola
2017-08-02 10:29 ` [PATCH i-g-t 3/3] tests: Add kms_atomic_interruptible test Maarten Lankhorst
2017-08-04  7:50   ` Mika Kahola
2017-08-07  8:47     ` Maarten Lankhorst
2017-08-04  7:46 ` [PATCH i-g-t 1/3] lib/igt_aux: Export statistics of signal helper Mika Kahola
2017-08-04  7:50 ` Chris Wilson
2017-08-07  9:45   ` Maarten Lankhorst
2017-08-07  9:59     ` Chris Wilson
2017-08-07 15:51       ` Daniel Vetter

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=1501834066.16922.37.camel@intel.com \
    --to=mika.kahola@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=maarten.lankhorst@linux.intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.