From 5d008d90309defd2ed15f1b9525c551ecb38e21d Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 18 Nov 2020 14:16:22 +0100 Subject: render: introduce wlr_renderer_get_dmabuf_render_formats It describes which DMA-BUF formats can be used to render. --- include/render/wlr_renderer.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/render') diff --git a/include/render/wlr_renderer.h b/include/render/wlr_renderer.h index 0ef1ef82..8e113ac8 100644 --- a/include/render/wlr_renderer.h +++ b/include/render/wlr_renderer.h @@ -4,5 +4,11 @@ #include bool wlr_renderer_bind_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer); +/** + * Get the DMA-BUF formats supporting rendering usage. Buffers allocated with + * a format from this list may be attached via wlr_renderer_bind_buffer. + */ +const struct wlr_drm_format_set *wlr_renderer_get_dmabuf_render_formats( + struct wlr_renderer *renderer); #endif -- cgit v1.2.3