compositor-drm: Add test-only mode to state application
authorDaniel Stone <daniels@collabora.com>
Thu, 8 Dec 2016 17:27:17 +0000 (17:27 +0000)
committerDaniel Stone <daniels@collabora.com>
Wed, 11 Jul 2018 11:49:53 +0000 (12:49 +0100)
commitbb6c19f7bb18cc400e11274184322ffe499e20ef
treeae6155193624cb3a44f58fa77d2d507afb43e72e
parentf829062ef40cd12c457990c1d5e60b0c4b486d48
compositor-drm: Add test-only mode to state application

The atomic API can allow us to test state before we apply it, to see if
it will be valid. Use this when we construct a plane configuration, to
see if it has a chance of ever working. If not, we can fail
assign_planes early.

This will be used in later patches to incrementally build state by
proposing and testing potential configurations one at a time.

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