mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-04 13:29:45 -05:00
allocator/gbm: Log errno if gbm_bo_create fails
This commit is contained in:
parent
a0450d219f
commit
ccd4703207
1 changed files with 2 additions and 2 deletions
|
|
@ -106,14 +106,14 @@ static struct wlr_gbm_buffer *create_buffer(struct wlr_gbm_allocator *alloc,
|
||||||
fallback_modifier = DRM_FORMAT_MOD_LINEAR;
|
fallback_modifier = DRM_FORMAT_MOD_LINEAR;
|
||||||
} else if (!wlr_drm_format_has(format, DRM_FORMAT_MOD_INVALID)) {
|
} else if (!wlr_drm_format_has(format, DRM_FORMAT_MOD_INVALID)) {
|
||||||
// If the format doesn't accept an implicit modifier, bail out.
|
// If the format doesn't accept an implicit modifier, bail out.
|
||||||
wlr_log(WLR_ERROR, "gbm_bo_create_with_modifiers failed");
|
wlr_log_errno(WLR_ERROR, "gbm_bo_create_with_modifiers failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
bo = gbm_bo_create(gbm_device, width, height, format->format, usage);
|
bo = gbm_bo_create(gbm_device, width, height, format->format, usage);
|
||||||
has_modifier = false;
|
has_modifier = false;
|
||||||
}
|
}
|
||||||
if (bo == NULL) {
|
if (bo == NULL) {
|
||||||
wlr_log(WLR_ERROR, "gbm_bo_create failed");
|
wlr_log_errno(WLR_ERROR, "gbm_bo_create failed");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue