compositor-drm: Allow scanout plane to be occluded by overlay
authorDaniel Stone <daniels@collabora.com>
Wed, 11 Jul 2018 12:03:31 +0000 (13:03 +0100)
committerDaniel Stone <daniels@collabora.com>
Wed, 11 Jul 2018 13:17:52 +0000 (14:17 +0100)
commitb41abf9c8422b9a6f4236cfc42f8367b297acf3b
tree878cf33e27c1a712294b2ab04facc2075a380067
parenta284d271f134eb805f799a9861c662d895bf0b11
compositor-drm: Allow scanout plane to be occluded by overlay

a0f8276fe814 ("compositor-drm: Disallow overlapping overlay planes") was
a little too pessimistic in rejecting occluded views. Whilst it
correctly prevented overlay planes from occluding each other, it also
prevented overlay planes from occluding the scanout plane.

This is undesirable: the primary/scanout plane is specified to stack
strictly below all overlay planes, so there is no need to reject a plane
from consideration for scanout due to being occluded by an overlay
plane.

Shift the check downwards so it only applies to overlay rather than
scanout planes.

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