Add union function for format sets

This commit is contained in:
Austin Shafer 2022-07-22 17:16:41 -04:00
parent bf8ae8a036
commit ec37d55a5e
2 changed files with 48 additions and 0 deletions

View file

@ -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