compositor-drm: Don't test render-only atomic configuration
authorDaniel Stone <daniels@collabora.com>
Fri, 20 Jul 2018 18:55:37 +0000 (19:55 +0100)
committerDerek Foreman <derekf@osg.samsung.com>
Fri, 27 Jul 2018 16:20:47 +0000 (11:20 -0500)
commit117892259014d02e3ed41d241c6068d026f4c440
treece316fa5bc2d4564dc1f7d61df0360c7e9fefa03
parent8c9556c57d0f907e461e2c4ccf01155f0a7b1244
compositor-drm: Don't test render-only atomic configuration

In the RENDERER_ONLY state proposal mode, we don't actually have a
viable configuration to test, because we won't get a renderer buffer
until after assign_planes - where we're called from - has completed.

This can result in us trying to test a configuration with the CRTC and
connectors active, but no planes active, which the kernel can
legitimately fail.

If we're working in renderer-only mode, just return the state we have
without trying to test it first, and let the kernel fill it in later.

Signed-off-by: Daniel Stone <daniels@collabora.com>
Acked-by: Derek Foreman <derek.foreman.samsung@gmail.com>
libweston/compositor-drm.c