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.
This commit is contained in:
Simon Ser 2022-11-30 13:00:09 +01:00
parent c99c60090c
commit d45cffb865
2 changed files with 81 additions and 32 deletions

View file

@ -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;
};