aboutsummaryrefslogtreecommitdiff
path: root/include/render/wlr_renderer.h
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-18 14:16:22 +0100
committerSimon Ser <contact@emersion.fr>2020-11-30 11:08:44 +0100
commit5d008d90309defd2ed15f1b9525c551ecb38e21d (patch)
tree54e27d79cc93ec87646207a07de690371302b24f /include/render/wlr_renderer.h
parent61612ecb3688431b85a55d046a49b3700826990d (diff)
render: introduce wlr_renderer_get_dmabuf_render_formats
It describes which DMA-BUF formats can be used to render.
Diffstat (limited to 'include/render/wlr_renderer.h')
-rw-r--r--include/render/wlr_renderer.h6
1 files changed, 6 insertions, 0 deletions
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 <wlr/render/wlr_renderer.h>
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