aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAustin Shafer <ashafer@nvidia.com>2022-07-22 17:16:41 -0400
committerAustin Shafer <ashafer@nvidia.com>2023-05-03 12:06:48 -0400
commitec37d55a5eb76d6ac516f14ebfead7bfffb6426a (patch)
tree633a299d4b346a77f8658f0e644aac57140b3c49 /include
parentbf8ae8a0367427a595e1fb804a27b7cb8605f8ae (diff)
Add union function for format sets
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