[PATCH 06/17] drm: Global atomic state handling

2014-11-04 Thread Daniel Vetter
On Tue, Nov 04, 2014 at 10:30:37PM +0100, Daniel Vetter wrote: > On Tue, Nov 04, 2014 at 03:31:07PM -0500, Sean Paul wrote: > > On Sun, Nov 02, 2014 at 02:19:19PM +0100, Daniel Vetter wrote: > > > +drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state, > > > + struct drm_crtc

[PATCH 06/17] drm: Global atomic state handling

2014-11-04 Thread Daniel Vetter
On Tue, Nov 04, 2014 at 03:31:07PM -0500, Sean Paul wrote: > On Sun, Nov 02, 2014 at 02:19:19PM +0100, Daniel Vetter wrote: > > +drm_atomic_set_crtc_for_connector(struct drm_connector_state *conn_state, > > + struct drm_crtc *crtc) > > +{ > > + struct drm_crtc_state *crtc_state; > > + > > +

[PATCH 06/17] drm: Global atomic state handling

2014-11-04 Thread Sean Paul
On Sun, Nov 02, 2014 at 02:19:19PM +0100, Daniel Vetter wrote: > Some differences compared to Rob's patches again: > - Dropped the committed and checked booleans. Checking will be > internally enforced by always calling ->atomic_check before > ->atomic_commit. And async handling needs to be

[PATCH 06/17] drm: Global atomic state handling

2014-11-04 Thread Daniel Vetter
On Mon, Nov 03, 2014 at 03:41:32PM -0800, Matt Roper wrote: > On Sun, Nov 02, 2014 at 02:19:19PM +0100, Daniel Vetter wrote: > ... > > +/** > > + * drm_atomic_get_plane_state - get plane state > > + * @state: global atomic state object > > + * @plane: plane to get state object for > > + * > > + *

[PATCH 06/17] drm: Global atomic state handling

2014-11-03 Thread Matt Roper
On Sun, Nov 02, 2014 at 02:19:19PM +0100, Daniel Vetter wrote: ... > +/** > + * drm_atomic_get_plane_state - get plane state > + * @state: global atomic state object > + * @plane: plane to get state object for > + * > + * This functions returns the plane state for the given plane, allocating it >

[PATCH 06/17] drm: Global atomic state handling

2014-11-02 Thread Daniel Vetter
Some differences compared to Rob's patches again: - Dropped the committed and checked booleans. Checking will be internally enforced by always calling ->atomic_check before ->atomic_commit. And async handling needs to be solved differently because the current scheme completely side-steps ww