From: Jakob Bornecrantz <jakob@vmware.com>
To: Jesse Barnes <jbarnes@virtuousgeek.org>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [RFC] drm: atomic mode set API
Date: Thu, 16 Feb 2012 04:46:39 -0800 (PST) [thread overview]
Message-ID: <1977023872.1149350.1329396399381.JavaMail.root@zimbra-prod-mbox-2.vmware.com> (raw)
In-Reply-To: <20120215144230.648f4349@jbarnes-x220>
----- Original Message -----
> Many of us really want (and need) a way to set the whole display
> configuration atomically, as well as test a global config.
>
> In talking with Rob and Alex here at ELC a bit, I think this may be
> enough:
>
> diff --git a/include/drm/drm_mode.h b/include/drm/drm_mode.h
> index 2a2acda..2864b02 100644
> --- a/include/drm/drm_mode.h
> +++ b/include/drm/drm_mode.h
> @@ -157,6 +157,26 @@ struct drm_mode_get_plane_res {
> __u32 count_planes;
> };
>
> +#define DRM_SET_CONFIG_TEST (1<<0) /* don't change the config, just test it for validity */
> +
> +struct drm_mode_set_config {
> + __u64 crtcs;
> + __u64 crtc_fbs;
> + __u64 crtc_xpos; /* array of x coords for crtcs */
> + __u64 crtc_ypos; /* array of y coords for crtcs */
> + __u32 count_crtcs;
> +
> + __u64 plane_sets; /* array of set_plane structs */
> +
> + __u32 count_planes;
> +
> + __u64 connectors;
> + __u64 connector_modes;
> + __u32 count_connectors;
How do you do mirroring? Why not just send down a array of
drm_mode_crtc?
> +
> + __u32 flags;
> +};
> +
> #define DRM_MODE_ENCODER_NONE 0
> #define DRM_MODE_ENCODER_DAC 1
> #define DRM_MODE_ENCODER_TMDS 2
>
> This allows you to bind a bunch of fbs to crtcs with independent
> positions, as well as set a bunch of planes to specific fbs and
> layouts. Finally, it lets you change the connector config at the
> same time, with a flag to simply test a config instead of
> actually setting it.
>
> Any comments? Do we also need to set gamma or other properties as
> part of this? What about cursors?
I would like to see properties added as well.
Cheers, Jakob.
next prev parent reply other threads:[~2012-02-16 12:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 22:42 [RFC] drm: atomic mode set API Jesse Barnes
2012-02-15 22:59 ` Adam Jackson
2012-02-15 23:12 ` Daniel Vetter
2012-02-16 1:55 ` Jesse Barnes
2012-02-16 12:36 ` Ville Syrjälä
2012-02-16 1:53 ` Jesse Barnes
2012-02-16 7:52 ` Rob Clark
2012-02-16 12:46 ` Jakob Bornecrantz [this message]
2012-02-16 16:53 ` Jesse Barnes
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=1977023872.1149350.1329396399381.JavaMail.root@zimbra-prod-mbox-2.vmware.com \
--to=jakob@vmware.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=jbarnes@virtuousgeek.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