libliftoff/test
Leo Li 4124ee8c7a Keep output layers ordered by allocation priority
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.
2023-12-20 16:03:49 +00:00
..
bench.c Fix -Wsign-conversion on 32-bit 2023-02-22 10:45:05 +01:00
check_ndebug.c Add newline after function return type 2021-08-13 22:02:33 +02:00
libdrm_mock.c Turn on -Wsign-conversion 2023-02-16 21:33:36 +01:00
libdrm_mock.h Turn on -Wsign-conversion 2023-02-16 21:33:36 +01:00
meson.build Keep output layers ordered by allocation priority 2023-12-20 16:03:49 +00:00
test_alloc.c Turn on -Wsign-conversion 2023-02-16 21:33:36 +01:00
test_candidate.c Turn on -Wsign-conversion 2023-02-16 21:33:36 +01:00
test_dynamic.c Turn on -Wsign-conversion 2023-02-16 21:33:36 +01:00
test_priority.c Turn on -Wsign-conversion 2023-02-16 21:33:36 +01:00
test_prop.c Turn on -Wsign-conversion 2023-02-16 21:33:36 +01:00