aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2022-11-30 13:00:09 +0100
committerSimon Ser <contact@emersion.fr>2022-11-30 14:14:07 +0100
commitd45cffb86592515b549294de5d8784d34f26502f (patch)
tree19a11e9e10a94dd766bd33624675e0cb9781e5fb /include/wlr
parentc99c60090cdc78f29c3f545e6f51b1b650486813 (diff)
linux-dmabuf-v1: don't use wlr_renderer to sanity check DMA-BUFs
The wlr_renderer field will go away in a subsequent commit. Instead of trying to create a texture, try to import the DMA-BUF into the DRM device FD.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_linux_dmabuf_v1.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_linux_dmabuf_v1.h b/include/wlr/types/wlr_linux_dmabuf_v1.h
index 07372fc8..960cbb2c 100644
--- a/include/wlr/types/wlr_linux_dmabuf_v1.h
+++ b/include/wlr/types/wlr_linux_dmabuf_v1.h
@@ -67,6 +67,8 @@ struct wlr_linux_dmabuf_v1 {
struct wlr_linux_dmabuf_feedback_v1_compiled *default_feedback;
struct wl_list surfaces; // wlr_linux_dmabuf_v1_surface.link
+ int main_device_fd; // to sanity check FDs sent by clients
+
struct wl_listener display_destroy;
struct wl_listener renderer_destroy;
};