Don't pick a busy plane in layer_choose_plane

This commit is contained in:
Simon Ser 2019-08-23 18:59:20 +03:00
parent 9a6237026a
commit 559bd2bf3a
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -191,6 +191,9 @@ static bool layer_choose_plane(struct hwc_layer *layer, drmModeAtomicReq *req)
for (i = 0; i < display->planes_len; i++) {
plane = &display->planes[i];
if (plane->layer != NULL) {
continue;
}
fprintf(stderr, "Trying to apply layer %p with plane %d...\n",
(void *)layer, plane->id);