backend-drm: Further checks to skip plane assignment to HW planes
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 15 Nov 2019 12:11:49 +0000 (14:11 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 22 Nov 2019 18:25:20 +0000 (20:25 +0200)
commit18462e8924d6d0ac1db000f2e7ad3b7c427f0e18
treeb84715eef95a7de783af5cbde85130b4b9be4a97
parent48bc5efa7c167f8e9246b93a29ce256540280d60
backend-drm: Further checks to skip plane assignment to HW planes

Mode change from mixed-mode to renderer-only means we should no longer
try to place views in HW planes (as we composite everything into the
primary plane) thus we should avoid that whenever that happens.

In the same time we need to be able to place in mixed-mode/renderer-only
mode the cursor view into the cursor plane (if one is available).

This patch adds a further check to skip plane assignment when disabling
overlay support (when we switch to renderer-only mode), when drivers do
not have atomic-modeset or it has been disabled intentionally.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
libweston/backend-drm/state-propose.c