Omit logging inactive layer information

It is only of interest to log the currently active layers when debugging.
A layer is inactive when it does not have an fb and composition is not forced.

Check layers for that and otherwise skip them. Also tell if composition is
actually forced on the layer.
This commit is contained in:
Roman Gilg 2020-02-26 13:26:29 +01:00 committed by Simon Ser
parent 71bd11377a
commit 52cd24a904
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -65,7 +65,16 @@ void output_log_layers(struct liftoff_output *output) {
liftoff_log(LIFTOFF_DEBUG, "Layers on CRTC %"PRIu32":", output->crtc_id);
liftoff_list_for_each(layer, &output->layers, link) {
if (layer->force_composition) {
liftoff_log(LIFTOFF_DEBUG, " Layer %p "
"(forced composition):", (void *)layer);
} else {
if (!layer_has_fb(layer)) {
continue;
}
liftoff_log(LIFTOFF_DEBUG, " Layer %p:", (void *)layer);
}
for (i = 0; i < layer->props_len; i++) {
char *name = layer->props[i].name;
uint64_t value = layer->props[i].value;