OSDN Git Service

drm/atomic: Add macros to access existing old/new state, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 16 Feb 2017 14:47:08 +0000 (15:47 +0100)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 6 Mar 2017 10:42:28 +0000 (11:42 +0100)
commit2107777c0249e95f9493f3341dcb4fd89b965385
tree2f80180456f434177895061fac2bfc36d5ddfa6d
parent51ffa12d90baebc56eef6781233873f7ad558d54
drm/atomic: Add macros to access existing old/new state, v2.

After atomic commit, these macros should be used in place of
get_existing_state. Also after commit get_xx_state should no longer
be used because it may not have the required locks.

The calls to drm_atomic_get_existing_$obj_state should no longer be
used, and converted over to these new calls.

Changes since v1:
- Expand commit message.
- Deprecate get_existing_*_state functions in the documentation.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1487256430-7625-4-git-send-email-maarten.lankhorst@linux.intel.com
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
include/drm/drm_atomic.h