mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-17 21:42:33 -04:00
drm: Make it clear that we tried to import a shm buffer
Reduces the guess work in logs
This commit is contained in:
parent
57441ded02
commit
37f30dc8d0
1 changed files with 7 additions and 1 deletions
|
|
@ -144,7 +144,13 @@ static struct wlr_drm_fb *drm_fb_create(struct wlr_drm_backend *drm,
|
||||||
struct wlr_buffer *buf, const struct wlr_drm_format_set *formats) {
|
struct wlr_buffer *buf, const struct wlr_drm_format_set *formats) {
|
||||||
struct wlr_dmabuf_attributes attribs;
|
struct wlr_dmabuf_attributes attribs;
|
||||||
if (!wlr_buffer_get_dmabuf(buf, &attribs)) {
|
if (!wlr_buffer_get_dmabuf(buf, &attribs)) {
|
||||||
wlr_log(WLR_DEBUG, "Failed to get DMA-BUF from buffer");
|
struct wlr_shm_attributes shm;
|
||||||
|
if (wlr_buffer_get_shm(buf, &shm)) {
|
||||||
|
wlr_log(WLR_DEBUG, "Failed to get DMA-BUF from shm buffer");
|
||||||
|
} else {
|
||||||
|
wlr_log(WLR_DEBUG, "Failed to get DMA-BUF from buffer");
|
||||||
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue