Skip to content
Commit 4cde507b authored by Michael Olbrich's avatar Michael Olbrich
Browse files

backend-drm: fix plane sorting



The planes in the plane_list must be sorted from largest zpos_max to smallest.

Currently the plane order is only correct when the planes are already ordered
and added starting with the smallest zpos_max. This works accidentally in most
cases because the primary plane is usually first and there is often only one
overlay plane or the zpos is sufficiantly configurable.

To fix this, insert a new plane before the first plane with a smaller zpos_max.
And if none is found, insert it at the end of the list.

Signed-off-by: default avatarMichael Olbrich <m.olbrich@pengutronix.de>
parent 4990e28f
Loading
Loading
Loading
Pipeline #677260 passed with stages
in 3 minutes and 25 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment