compositor-drm: Disallow overlapping overlay planes
authorDaniel Stone <daniels@collabora.com>
Tue, 10 Jul 2018 10:44:25 +0000 (11:44 +0100)
committerDaniel Stone <daniels@collabora.com>
Wed, 11 Jul 2018 11:24:55 +0000 (12:24 +0100)
commita0f8276fe814957ea8ae46bd4f5fda3a9e1b8e69
tree22a3f0e0a20878bd9c7ee35b616655632824c646
parentddaf95c5a1f0caa88a7c9348ef7af9fd07d1e8d6
compositor-drm: Disallow overlapping overlay planes

The scanout plane strictly stacks under all overlay planes, and the
cursor plane above. However, the stacking of overlay planes with respect
to each other is undefined.

We can control the stacking order of overlay planes with the zpos
property, though this significantly complicates plane assignment. In the
meantime, simply disallow assigning a view to an overlay, when it
overlaps another view which is already on an overlay. This ensures
stacking order is irrelevant, since the planes never intersect each
other.

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