From 559bd2bf3aaa766b9a8665ebc4b3a7aafc680d4a Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 23 Aug 2019 18:59:20 +0300 Subject: [PATCH] Don't pick a busy plane in layer_choose_plane --- display.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/display.c b/display.c index 588175a..6acec76 100644 --- a/display.c +++ b/display.c @@ -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);