From d45cffb86592515b549294de5d8784d34f26502f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 30 Nov 2022 13:00:09 +0100 Subject: 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. --- include/wlr/types/wlr_linux_dmabuf_v1.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/wlr') 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; }; -- cgit v1.2.3