compositor-drm: Introduce drm_pending_state structure
authorDaniel Stone <daniels@collabora.com>
Fri, 10 Feb 2017 18:06:04 +0000 (18:06 +0000)
committerDaniel Stone <daniels@collabora.com>
Mon, 28 Aug 2017 19:22:29 +0000 (20:22 +0100)
commiteedf84c68f57c5d9d171520d8984e5ef293035f7
tree69cb4bee340300f971fb1c15012b12acfd3a6fca
parent085d2b9a01e1cbc384c81082568ddf21f3c9093c
compositor-drm: Introduce drm_pending_state structure

drm_pending_state is currently skeletal, but will be used to retain
data through begin_repaint -> assign_planes -> repaint -> repaint_flush.

The flush and cancel functions are currently identical, only freeing the
state, but they will be used for different purposes in later patches.
Specifically, the intent is to apply any pending output changes (through
PageFlip/SetCrtc, or the atomic ioctls) in flush, and only free the
state in cancel.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
libweston/compositor-drm.c