mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2024-12-25 21:59:11 +01:00
4124ee8c7a
To optimize for offloading success, the list of output layers can be ordered by allocation priority, improving the chances of a higher allocation score before the deadline. The allocation algorithm picks DRM planes first, then tests output layers against them. To reduce the number of tests, the layers can be ordered such that it matches the DRM plane order. DRM planes in libliftoff are ordered by primary, followed by all other planes in descending z-order. We order the layers similarly, with the composition layer first, followed by layers of descending priority. In addition to layer priority, it's z-pos and intersection with other layers are considered. Since to offload a high priority layer, all intersection layers with higher z-pos will also need to be offloaded. This also changes when reallocation is necessary. On top of the existing criteria, reallocation is done when a layer's ordering changes. With layer priority now considered, the priority test now passes -- enable it. |
||
---|---|---|
.. | ||
bench.c | ||
check_ndebug.c | ||
libdrm_mock.c | ||
libdrm_mock.h | ||
meson.build | ||
test_alloc.c | ||
test_candidate.c | ||
test_dynamic.c | ||
test_priority.c | ||
test_prop.c |