backend-drm: Assign the primary plane the lowest zpos value
authorMarius Vlad <marius.vlad@collabora.com>
Fri, 15 Nov 2019 11:33:38 +0000 (13:33 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Fri, 22 Nov 2019 15:11:28 +0000 (17:11 +0200)
commitbd002b98841200a2425ccc8740267322b1c8788d
tree9cdeb1c43fef20f614561eaa08995862f2579a73
parentb544ac3ab446a31b4401c591e6a32097b3b2a303
backend-drm: Assign the primary plane the lowest zpos value
when switching to mixed-mode of compositing

This way we avoid an (incorrect) duplicate check of zpos values. Also,
this would be needed because the renderer needs have the lowest zpos value
available as we don't (yet) properly support underlays, the primary
plane serves as our renderer.

Adds also a check to see if we try to assign a view to a plane with
a lower zpos value than the one assigned to the primary when switching
to mixed-mode of compositing.

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