render/drm_format_set: add wlr_drm_format_{create,add}

This commit is contained in:
Simon Ser 2020-12-12 22:26:14 +01:00 committed by Ilia Bozhinov
parent 253f447329
commit d37214cb16
2 changed files with 50 additions and 39 deletions

View file

@ -3,6 +3,8 @@
#include <wlr/render/drm_format_set.h>
struct wlr_drm_format *wlr_drm_format_create(uint32_t format);
bool wlr_drm_format_add(struct wlr_drm_format **fmt_ptr, uint64_t modifier);
struct wlr_drm_format *wlr_drm_format_dup(const struct wlr_drm_format *format);
/**
* Intersect modifiers for two DRM formats.