compositor-drm: Return plane state from plane preparation
authorDaniel Stone <daniels@collabora.com>
Fri, 9 Dec 2016 17:32:10 +0000 (17:32 +0000)
committerDaniel Stone <daniels@collabora.com>
Wed, 11 Jul 2018 11:45:07 +0000 (12:45 +0100)
commitf829062ef40cd12c457990c1d5e60b0c4b486d48
treea215ce7452b57b528be8aefe022d84f24cccdf7d
parentf7a2f835ae83409dec1e0487424cec7718385fb6
compositor-drm: Return plane state from plane preparation

Return a pointer to the plane state, rather than returning its
underlying weston_plane. This eliminates any ambiguity between placing
client buffers on planes, and placing them through the renderer.

drm_output_propose_state is only concerned with preparing, testing, and
returning DRM state objects. Assigning views to weston_planes only
happens later, inside drm_assign_planes. This makes that split more
clear.

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