]> git.baikalelectronics.ru Git - kernel.git/commit
drm/atomic: Clean up wait_for_vblanks, v2.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 15 Dec 2016 11:51:42 +0000 (12:51 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Dec 2016 15:41:47 +0000 (16:41 +0100)
commitbdc571464c49740ce56c56e108d60f825336eb89
tree3f9048f95d1fcc1e8e4ace3bfe9873f571d8a89b
parent0532be078a207d7dd6ad26ebd0834e258acc4ee7
drm/atomic: Clean up wait_for_vblanks, v2.

Stop relying on a per crtc_state last_vblank_count, we shouldn't touch
crtc_state after commit. Move it to atomic_state->crtcs.

Also stop re-using new_crtc_state->enable, we can now simply set a
bitmask with crtc_crtc_mask.

Changes since v1:
- Keep last_vblank_count in __drm_crtc_state.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/8e4759a4-24d3-3f80-bd1a-1e7a9c83b612@linux.intel.com
drivers/gpu/drm/drm_atomic_helper.c
include/drm/drm_atomic.h
include/drm/drm_crtc.h