mirror of
https://gitlab.freedesktop.org/emersion/libliftoff.git
synced 2025-01-15 03:40:52 +01:00
Don't pick a busy plane in layer_choose_plane
This commit is contained in:
parent
9a6237026a
commit
559bd2bf3a
1 changed files with 3 additions and 0 deletions
|
@ -191,6 +191,9 @@ static bool layer_choose_plane(struct hwc_layer *layer, drmModeAtomicReq *req)
|
||||||
|
|
||||||
for (i = 0; i < display->planes_len; i++) {
|
for (i = 0; i < display->planes_len; i++) {
|
||||||
plane = &display->planes[i];
|
plane = &display->planes[i];
|
||||||
|
if (plane->layer != NULL) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
fprintf(stderr, "Trying to apply layer %p with plane %d...\n",
|
fprintf(stderr, "Trying to apply layer %p with plane %d...\n",
|
||||||
(void *)layer, plane->id);
|
(void *)layer, plane->id);
|
||||||
|
|
Loading…
Reference in a new issue