From e516ea4c798d4c02e77836d5e8196decb90a8774 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 9 Apr 2019 23:36:35 +0300 Subject: backend/drm: check format when scanning out DMA-BUF --- include/wlr/render/drm_format_set.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/render/drm_format_set.h b/include/wlr/render/drm_format_set.h index 588914ae..15d4eea3 100644 --- a/include/wlr/render/drm_format_set.h +++ b/include/wlr/render/drm_format_set.h @@ -21,6 +21,9 @@ void wlr_drm_format_set_finish(struct wlr_drm_format_set *set); const struct wlr_drm_format *wlr_drm_format_set_get( const struct wlr_drm_format_set *set, uint32_t format); +bool wlr_drm_format_set_has(const struct wlr_drm_format_set *set, + uint32_t format, uint64_t modifier); + bool wlr_drm_format_set_add(struct wlr_drm_format_set *set, uint32_t format, uint64_t modifier); -- cgit v1.2.3