diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-09 22:20:24 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-09 22:20:24 +0100 |
commit | e9c1f0f7d33ceb5ec36a84ac2b977924562d63af (patch) | |
tree | 026b2be271d1173b86a1d1fb518a29355015c2f2 | |
parent | f91e89fd9f701781ff320f643acdb129ab4f4e55 (diff) |
output: improve basic test logging
-rw-r--r-- | types/wlr_output.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c index 15e85154..2397985b 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -518,6 +518,7 @@ static bool output_basic_test(struct wlr_output *output) { if (output->pending.buffer_type == WLR_OUTPUT_STATE_BUFFER_SCANOUT) { if (output->attach_render_locks > 0) { + wlr_log(WLR_DEBUG, "Direct scan-out disabled by lock"); return false; } @@ -527,6 +528,8 @@ static bool output_basic_test(struct wlr_output *output) { wl_list_for_each(cursor, &output->cursors, link) { if (cursor->enabled && cursor->visible && cursor != output->hardware_cursor) { + wlr_log(WLR_DEBUG, + "Direct scan-out disabled by software cursor"); return false; } } @@ -537,6 +540,7 @@ static bool output_basic_test(struct wlr_output *output) { output_pending_resolution(output, &pending_width, &pending_height); if (output->pending.buffer->width != pending_width || output->pending.buffer->height != pending_height) { + wlr_log(WLR_DEBUG, "Direct scan-out buffer size mismatch"); return false; } } @@ -576,7 +580,7 @@ bool wlr_output_test(struct wlr_output *output) { bool wlr_output_commit(struct wlr_output *output) { if (!output_basic_test(output)) { - wlr_log(WLR_ERROR, "Basic output test failed"); + wlr_log(WLR_ERROR, "Basic output test failed for %s", output->name); return false; } |