mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-05-09 05:58:13 +02:00
Merge branch 'shm-scanout-logging' into 'master'
drm: Make it clear that we tried to import a shm buffer See merge request wlroots/wlroots!5355
This commit is contained in:
commit
29313a05d6
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_dmabuf_attributes 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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue