All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ander Conselvan De Oliveira <conselvan2@gmail.com>
To: Matt Roper <matthew.d.roper@intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 2/3] lib/kms: Add nuclear pageflip commit style
Date: Tue, 17 Mar 2015 13:53:05 +0200	[thread overview]
Message-ID: <1426593185.2446.12.camel@gmail.com> (raw)
In-Reply-To: <1421726713-32115-3-git-send-email-matthew.d.roper@intel.com>

On Mon, 2015-01-19 at 20:05 -0800, Matt Roper wrote:
> This commit style only covers the "nuclear pageflip" subset of the
> atomic API (i.e., single CRTC, plane updates only).  In the future when
> our kernel driver has full atomic modeset support, we'll add another
> commit style 'atomic' which will re-use the same plane commit calls
> added here, but will generate and commit property sets in the display's
> commit handler rather than the output's commit handler.
> 
> Since nuclear pageflip (and full atomic eventually) depend on very new
> (currently unreleased) libdrm, use autoconf to check for support so that
> we can still run with just legacy + universal styles when built with
> older libdrm's.
> 
> Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
> ---
>  configure.ac  |   3 ++
>  lib/igt_kms.c | 169 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
>  lib/igt_kms.h |  19 ++++++-
>  3 files changed, 181 insertions(+), 10 deletions(-)

[...]

> diff --git a/lib/igt_kms.h b/lib/igt_kms.h
> index a1483a4..2fab30e 100644
> --- a/lib/igt_kms.h
> +++ b/lib/igt_kms.h

[...]

> @@ -216,6 +227,11 @@ typedef struct {
>  	char *name;
>  	bool valid;
>  	unsigned long pending_crtc_idx_mask;
> +
> +#ifdef HAVE_ATOMIC
> +	/* Property set for nuclear pageflip */
> +	drmModePropertySetPtr set;
> +#endif
>  } igt_output_t;

Need to include config.h in the header file, otherwise code that depends
on the size of igt_output_t on the tests might do the wrong thing.

Ander

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

  reply	other threads:[~2015-03-17 11:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-20  4:05 [PATCH i-g-t 0/3] IGT support for nuclear pageflip Matt Roper
2015-01-20  4:05 ` [PATCH i-g-t 1/3] lib/kms: Let display commits wait for keypress while debugging Matt Roper
2015-01-20  4:05 ` [PATCH i-g-t 2/3] lib/kms: Add nuclear pageflip commit style Matt Roper
2015-03-17 11:53   ` Ander Conselvan De Oliveira [this message]
2015-01-20  4:05 ` [PATCH i-g-t 3/3] tests: Introduce kms_nuclear Matt Roper
2015-01-20 18:17   ` Thomas Wood
2015-01-26 17:14     ` [PATCH i-g-t 3/3] tests: Introduce kms_nuclear (v2) Matt Roper

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=1426593185.2446.12.camel@gmail.com \
    --to=conselvan2@gmail.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=matthew.d.roper@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.