aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-15 12:45:07 +0100
committerGitHub <noreply@github.com>2018-03-15 12:45:07 +0100
commitde0e40d621c51cf075825633946a9ac7f98ac213 (patch)
treef3ba050e4307a8fac76dbe7a5738332338c8c7e8 /rootston
parent85da9df8072ff200260eea73dc169d2b50ef0e7d (diff)
parent653bc282a7f814341f6d7429000928bc696e215e (diff)
Merge pull request #698 from agx/linux-dmabuf
Add initial linux_dmabuf protocol support
Diffstat (limited to 'rootston')
-rw-r--r--rootston/desktop.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rootston/desktop.c b/rootston/desktop.c
index 3628b051..a130fe38 100644
--- a/rootston/desktop.c
+++ b/rootston/desktop.c
@@ -9,6 +9,7 @@
#include <wlr/types/wlr_cursor.h>
#include <wlr/types/wlr_gamma_control.h>
#include <wlr/types/wlr_idle.h>
+#include <wlr/types/wlr_linux_dmabuf.h>
#include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_idle_inhibit_v1.h>
#include <wlr/types/wlr_primary_selection.h>
@@ -729,6 +730,8 @@ struct roots_desktop *desktop_create(struct roots_server *server,
desktop->idle = wlr_idle_create(server->wl_display);
desktop->idle_inhibit = wlr_idle_inhibit_v1_create(server->wl_display);
+ struct wlr_egl *egl = wlr_backend_get_egl(server->backend);
+ desktop->linux_dmabuf = wlr_linux_dmabuf_create(server->wl_display, egl);
return desktop;
}