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: Tue, 08 Aug 2017 12:30:10 +0300 [thread overview]
Message-ID: <1502184610.16922.40.camel@intel.com> (raw)
In-Reply-To: <6146510e-210b-a0f4-bc1e-4966303d4006@linux.intel.com>
On Mon, 2017-08-07 at 10:42 +0200, Maarten Lankhorst wrote:
> Op 04-08-17 om 10:07 schreef Mika Kahola:
> >
> > 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.c
> > > om>
> > > ---
> > > 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?
> There are no users of pipe->enabled left, so it's removed.
Ok. You can add my
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
> >
> > >
> > > 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
next prev parent reply other threads:[~2017-08-08 9:28 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
2017-08-07 8:42 ` Maarten Lankhorst
2017-08-08 9:30 ` Mika Kahola [this message]
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=1502184610.16922.40.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).