[PATCH v2 3/4] drm/atomic: Add macros to access existing old/new state

2016-12-28 Thread Daniel Vetter
On Wed, Nov 16, 2016 at 02:58:07PM +0100, Maarten Lankhorst wrote: > During atomic check/commit, these macros should be used in place of > get_existing_state. > > We also ban the use of get_xx_state after atomic check, because at that > point no new locks should be taken and get_new/old_state shou

[PATCH v2 3/4] drm/atomic: Add macros to access existing old/new state

2016-11-16 Thread Maarten Lankhorst
During atomic check/commit, these macros should be used in place of get_existing_state. We also ban the use of get_xx_state after atomic check, because at that point no new locks should be taken and get_new/old_state should be used instead. Signed-off-by: Maarten Lankhorst --- include/drm/drm_a