mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2025-01-18 10:27:00 +01:00
c4a8afb39b
This commit adds special handling for the layer zpos property. Setting it won't forward it to KMS, instead it will be handled internally. The plane zpos (either retrieved from KMS if the property is supported, or guessed from the plane type and ID) is checked during plane allocation to have the same ordering as the layer zpos. This adds more constraints to the allocation. Note that the new constraints are too strict. In case two layers don't overlap, there's no need for one plane to be on top of the other. See [1]. Also, the new constraints don't account for underlay planes [2]. [1]: https://github.com/emersion/libhwc/issues/3 [2]: https://github.com/emersion/libhwc/issues/7 Closes: https://github.com/emersion/libhwc/issues/4 |
||
---|---|---|
include | ||
.editorconfig | ||
.gitignore | ||
display.c | ||
example.c | ||
layer.c | ||
LICENSE | ||
list.c | ||
meson.build | ||
output.c | ||
README.md |
libhwc
Lightweight hardware composer library for libdrm.
libhwc eases the use of KMS planes from userspace without standing in your way. Users create "virtual planes" called layers, set KMS properties on them, and libhwc will allocate planes for these layers if possible.
Building
Depends on libdrm. Requires universal planes and atomic.
meson build/
ninja -C build/
License
MIT