mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-23 10:29:49 +01:00
output: improve basic test logging
This commit is contained in:
parent
f91e89fd9f
commit
e9c1f0f7d3
1 changed files with 5 additions and 1 deletions
|
@ -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->pending.buffer_type == WLR_OUTPUT_STATE_BUFFER_SCANOUT) {
|
||||||
if (output->attach_render_locks > 0) {
|
if (output->attach_render_locks > 0) {
|
||||||
|
wlr_log(WLR_DEBUG, "Direct scan-out disabled by lock");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -527,6 +528,8 @@ static bool output_basic_test(struct wlr_output *output) {
|
||||||
wl_list_for_each(cursor, &output->cursors, link) {
|
wl_list_for_each(cursor, &output->cursors, link) {
|
||||||
if (cursor->enabled && cursor->visible &&
|
if (cursor->enabled && cursor->visible &&
|
||||||
cursor != output->hardware_cursor) {
|
cursor != output->hardware_cursor) {
|
||||||
|
wlr_log(WLR_DEBUG,
|
||||||
|
"Direct scan-out disabled by software cursor");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -537,6 +540,7 @@ static bool output_basic_test(struct wlr_output *output) {
|
||||||
output_pending_resolution(output, &pending_width, &pending_height);
|
output_pending_resolution(output, &pending_width, &pending_height);
|
||||||
if (output->pending.buffer->width != pending_width ||
|
if (output->pending.buffer->width != pending_width ||
|
||||||
output->pending.buffer->height != pending_height) {
|
output->pending.buffer->height != pending_height) {
|
||||||
|
wlr_log(WLR_DEBUG, "Direct scan-out buffer size mismatch");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -576,7 +580,7 @@ bool wlr_output_test(struct wlr_output *output) {
|
||||||
|
|
||||||
bool wlr_output_commit(struct wlr_output *output) {
|
bool wlr_output_commit(struct wlr_output *output) {
|
||||||
if (!output_basic_test(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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue