aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2021-04-23 13:51:05 -0400
committerSimon Ser <contact@emersion.fr>2021-04-28 20:55:57 +0200
commit982498fab3c4d0aee9b29312559cbdd317c563a1 (patch)
tree096ca681801764a47296a32712e17576d530beb1 /include
parent144189674edbf908d72467cd497a0250b3d80b8b (diff)
render: introduce renderer_get_render_buffer_caps
Diffstat (limited to 'include')
-rw-r--r--include/render/wlr_renderer.h6
-rw-r--r--include/wlr/render/interface.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/include/render/wlr_renderer.h b/include/render/wlr_renderer.h
index 8298bab7..d09c20b3 100644
--- a/include/render/wlr_renderer.h
+++ b/include/render/wlr_renderer.h
@@ -21,5 +21,11 @@ bool wlr_renderer_bind_buffer(struct wlr_renderer *r, struct wlr_buffer *buffer)
*/
const struct wlr_drm_format_set *wlr_renderer_get_render_formats(
struct wlr_renderer *renderer);
+/**
+ * Get the supported buffer capabilities.
+ *
+ * This functions returns a bitfield of supported wlr_buffer_cap.
+ */
+uint32_t renderer_get_render_buffer_caps(struct wlr_renderer *renderer);
#endif
diff --git a/include/wlr/render/interface.h b/include/wlr/render/interface.h
index f11e0118..f280852c 100644
--- a/include/wlr/render/interface.h
+++ b/include/wlr/render/interface.h
@@ -56,6 +56,7 @@ struct wlr_renderer_impl {
bool (*init_wl_display)(struct wlr_renderer *renderer,
struct wl_display *wl_display);
int (*get_drm_fd)(struct wlr_renderer *renderer);
+ uint32_t (*get_render_buffer_caps)(void);
};
void wlr_renderer_init(struct wlr_renderer *renderer,