From 9ecfa4343a6d92fa057802a2911281d75a5a4f6f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 25 Mar 2021 21:07:58 +0100 Subject: render: remove wlr_texture_to_dmabuf This is unused in wlroots, and the use-cases for compositors are pretty niche since they can access the original DMA-BUF via the wlr_buffer. --- include/wlr/render/egl.h | 3 --- include/wlr/render/interface.h | 2 -- include/wlr/render/wlr_texture.h | 3 --- 3 files changed, 8 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/render/egl.h b/include/wlr/render/egl.h index 9a5bc76b..074c1653 100644 --- a/include/wlr/render/egl.h +++ b/include/wlr/render/egl.h @@ -46,7 +46,6 @@ struct wlr_egl { // Display extensions bool bind_wayland_display_wl; bool image_base_khr; - bool image_dma_buf_export_mesa; bool image_dmabuf_import_ext; bool image_dmabuf_import_modifiers_ext; @@ -63,8 +62,6 @@ struct wlr_egl { PFNEGLUNBINDWAYLANDDISPLAYWL eglUnbindWaylandDisplayWL; PFNEGLQUERYDMABUFFORMATSEXTPROC eglQueryDmaBufFormatsEXT; PFNEGLQUERYDMABUFMODIFIERSEXTPROC eglQueryDmaBufModifiersEXT; - PFNEGLEXPORTDMABUFIMAGEQUERYMESAPROC eglExportDMABUFImageQueryMESA; - PFNEGLEXPORTDMABUFIMAGEMESAPROC eglExportDMABUFImageMESA; PFNEGLDEBUGMESSAGECONTROLKHRPROC eglDebugMessageControlKHR; PFNEGLQUERYDISPLAYATTRIBEXTPROC eglQueryDisplayAttribEXT; PFNEGLQUERYDEVICESTRINGEXTPROC eglQueryDeviceStringEXT; diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h index 88dc430b..f00a8d76 100644 --- a/include/wlr/render/interface.h +++ b/include/wlr/render/interface.h @@ -69,8 +69,6 @@ struct wlr_texture_impl { uint32_t stride, uint32_t width, uint32_t height, uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, const void *data); - bool (*to_dmabuf)(struct wlr_texture *texture, - struct wlr_dmabuf_attributes *attribs); void (*destroy)(struct wlr_texture *texture); }; diff --git a/include/wlr/render/wlr_texture.h b/include/wlr/render/wlr_texture.h index 4949d135..1dba2b9e 100644 --- a/include/wlr/render/wlr_texture.h +++ b/include/wlr/render/wlr_texture.h @@ -76,9 +76,6 @@ bool wlr_texture_write_pixels(struct wlr_texture *texture, uint32_t src_x, uint32_t src_y, uint32_t dst_x, uint32_t dst_y, const void *data); -bool wlr_texture_to_dmabuf(struct wlr_texture *texture, - struct wlr_dmabuf_attributes *attribs); - /** * Destroys this wlr_texture. */ -- cgit v1.2.3