Log when no layer has been a plane

This commit is contained in:
Simon Ser 2021-08-09 12:58:35 +02:00
parent 9a6a7aaa87
commit 30ba835645

View file

@ -705,8 +705,8 @@ int liftoff_output_apply(struct liftoff_output *output, drmModeAtomicReq *req,
}
liftoff_log(LIFTOFF_DEBUG,
"Found plane allocation for output %p with "
"score=%d:", (void *)output, result.best_score);
"Found plane allocation for output %p with score=%d:",
(void *)output, result.best_score);
/* Apply the best allocation */
i = 0;
@ -725,6 +725,9 @@ int liftoff_output_apply(struct liftoff_output *output, drmModeAtomicReq *req,
plane->layer = layer;
layer->plane = plane;
}
if (i == 0) {
liftoff_log(LIFTOFF_DEBUG, " (No layer has a plane)");
}
ret = apply_current(device, req);
if (ret != 0) {