diff --git a/alloc.c b/alloc.c index 22c9e9d..88350e7 100644 --- a/alloc.c +++ b/alloc.c @@ -591,6 +591,8 @@ bool liftoff_output_apply(struct liftoff_output *output, drmModeAtomicReq *req) return true; } + output_log_layers(output); + /* Unset all existing plane and layer mappings. */ liftoff_list_for_each(plane, &device->planes, link) { if (plane->layer != NULL && plane->layer->output == output) { diff --git a/include/private.h b/include/private.h index abd0040..bf065ce 100644 --- a/include/private.h +++ b/include/private.h @@ -90,4 +90,6 @@ struct liftoff_plane_property *plane_get_property(struct liftoff_plane *plane, bool plane_apply(struct liftoff_plane *plane, struct liftoff_layer *layer, drmModeAtomicReq *req, bool *compatible); +void output_log_layers(struct liftoff_output *output); + #endif diff --git a/output.c b/output.c index 7b1b372..23d2907 100644 --- a/output.c +++ b/output.c @@ -1,4 +1,5 @@ #include +#include #include #include #include @@ -49,3 +50,18 @@ void liftoff_output_set_composition_layer(struct liftoff_output *output, } output->composition_layer = layer; } + +void output_log_layers(struct liftoff_output *output) { + struct liftoff_layer *layer; + size_t i; + + liftoff_log(LIFTOFF_DEBUG, "Layers on CRTC %"PRIu32":", output->crtc_id); + liftoff_list_for_each(layer, &output->layers, link) { + liftoff_log(LIFTOFF_DEBUG, " Layer %p:", (void *)layer); + for (i = 0; i < layer->props_len; i++) { + liftoff_log(LIFTOFF_DEBUG, " %s = %"PRIu64, + layer->props[i].name, + layer->props[i].value); + } + } +}