[RFC] drm: atomic mode set API

2012-02-16 Thread Ville Syrjälä
On Thu, Feb 16, 2012 at 12:12:49AM +0100, Daniel Vetter wrote: > On Wed, Feb 15, 2012 at 05:59:45PM -0500, Adam Jackson wrote: > > On 2/15/12 5:42 PM, Jesse Barnes wrote: > > > > >+#define DRM_SET_CONFIG_TEST (1<<0) /* don't change the config, just test > > >it for validity */ This would be OK

[RFC] drm: atomic mode set API

2012-02-16 Thread Jesse Barnes
On Thu, 16 Feb 2012 04:46:39 -0800 (PST) Jakob Bornecrantz wrote: > - 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

[RFC] drm: atomic mode set API

2012-02-16 Thread Jakob Bornecrantz
- 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

[RFC] drm: atomic mode set API

2012-02-16 Thread Daniel Vetter
On Wed, Feb 15, 2012 at 05:59:45PM -0500, Adam Jackson wrote: > On 2/15/12 5:42 PM, Jesse Barnes wrote: > > >+#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; > >+

Re: [RFC] drm: atomic mode set API

2012-02-16 Thread Ville Syrjälä
On Thu, Feb 16, 2012 at 12:12:49AM +0100, Daniel Vetter wrote: On Wed, Feb 15, 2012 at 05:59:45PM -0500, Adam Jackson wrote: On 2/15/12 5:42 PM, Jesse Barnes wrote: +#define DRM_SET_CONFIG_TEST (10) /* don't change the config, just test it for validity */ This would be OK for cases

Re: [RFC] drm: atomic mode set API

2012-02-16 Thread Jakob Bornecrantz
- 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

Re: [RFC] drm: atomic mode set API

2012-02-16 Thread Jesse Barnes
On Thu, 16 Feb 2012 04:46:39 -0800 (PST) Jakob Bornecrantz ja...@vmware.com wrote: - 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

[RFC] drm: atomic mode set API

2012-02-15 Thread Adam Jackson
On 2/15/12 5:42 PM, Jesse Barnes wrote: > +#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

[RFC] drm: atomic mode set API

2012-02-15 Thread Jesse Barnes
On Thu, 16 Feb 2012 00:12:49 +0100 Daniel Vetter wrote: > On Wed, Feb 15, 2012 at 05:59:45PM -0500, Adam Jackson wrote: > > On 2/15/12 5:42 PM, Jesse Barnes wrote: > > > > >+#define DRM_SET_CONFIG_TEST (1<<0) /* don't change the config, just test > > >it for validity */ > > >+ > > >+struct

[RFC] drm: atomic mode set API

2012-02-15 Thread Jesse Barnes
On Wed, 15 Feb 2012 17:59:45 -0500 Adam Jackson wrote: > On 2/15/12 5:42 PM, Jesse Barnes wrote: > > > +#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; > > +

[RFC] drm: atomic mode set API

2012-02-15 Thread Jesse Barnes
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 ---

[RFC] drm: atomic mode set API

2012-02-15 Thread Jesse Barnes
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 ---

Re: [RFC] drm: atomic mode set API

2012-02-15 Thread Adam Jackson
On 2/15/12 5:42 PM, Jesse Barnes wrote: +#define DRM_SET_CONFIG_TEST (10) /* 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; /*

Re: [RFC] drm: atomic mode set API

2012-02-15 Thread Daniel Vetter
On Wed, Feb 15, 2012 at 05:59:45PM -0500, Adam Jackson wrote: On 2/15/12 5:42 PM, Jesse Barnes wrote: +#define DRM_SET_CONFIG_TEST (10) /* don't change the config, just test it for validity */ + +struct drm_mode_set_config { +__u64 crtcs; +__u64 crtc_fbs; +__u64 crtc_xpos;

Re: [RFC] drm: atomic mode set API

2012-02-15 Thread Jesse Barnes
On Wed, 15 Feb 2012 17:59:45 -0500 Adam Jackson a...@redhat.com wrote: On 2/15/12 5:42 PM, Jesse Barnes wrote: +#define DRM_SET_CONFIG_TEST (10) /* don't change the config, just test it for validity */ + +struct drm_mode_set_config { + __u64 crtcs; + __u64 crtc_fbs; +

Re: [RFC] drm: atomic mode set API

2012-02-15 Thread Jesse Barnes
On Thu, 16 Feb 2012 00:12:49 +0100 Daniel Vetter dan...@ffwll.ch wrote: On Wed, Feb 15, 2012 at 05:59:45PM -0500, Adam Jackson wrote: On 2/15/12 5:42 PM, Jesse Barnes wrote: +#define DRM_SET_CONFIG_TEST (10) /* don't change the config, just test it for validity */ + +struct

Re: [RFC] drm: atomic mode set API

2012-02-15 Thread Rob Clark
On Wed, Feb 15, 2012 at 4:59 PM, Adam Jackson a...@redhat.com wrote: On 2/15/12 5:42 PM, Jesse Barnes wrote: +#define DRM_SET_CONFIG_TEST (10) /* don't change the config, just test it for validity */ + +struct drm_mode_set_config { +       __u64 crtcs; +       __u64 crtc_fbs; +