aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/wlr/render/drm_format_set.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/wlr/render/drm_format_set.h b/include/wlr/render/drm_format_set.h
index 6dbdc749..d7dfd779 100644
--- a/include/wlr/render/drm_format_set.h
+++ b/include/wlr/render/drm_format_set.h
@@ -72,4 +72,12 @@ bool wlr_drm_format_set_add(struct wlr_drm_format_set *set, uint32_t format,
bool wlr_drm_format_set_intersect(struct wlr_drm_format_set *dst,
const struct wlr_drm_format_set *a, const struct wlr_drm_format_set *b);
+/**
+ * Unions DRM format set `a` and `b`, storing in the destination set
+ * `dst`.
+ *
+ * Returns false on failure.
+ */
+bool wlr_drm_format_set_union(struct wlr_drm_format_set *dst,
+ const struct wlr_drm_format_set *a, const struct wlr_drm_format_set *b);
#endif