diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2023-05-04 14:16:55 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-05-04 18:19:33 +0000 |
commit | 5adb1be3a71fb5534b12ca6009d7113cb59f0134 (patch) | |
tree | 1e7a14709afe168bc03a30d218ff07bd3a1b85fc /include/wlr/render | |
parent | 1ee75786b40e3cf51428fe1a4fb67e09be163537 (diff) |
drm_format_set_intersect: Require initialized dst and remove assert
The usages in linux_dmabuf zero out the dst before passing it so this
change should be fine.
Diffstat (limited to 'include/wlr/render')
-rw-r--r-- | include/wlr/render/drm_format_set.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/wlr/render/drm_format_set.h b/include/wlr/render/drm_format_set.h index 0a6254e2..c8f3c309 100644 --- a/include/wlr/render/drm_format_set.h +++ b/include/wlr/render/drm_format_set.h @@ -73,7 +73,8 @@ bool wlr_drm_format_set_add(struct wlr_drm_format_set *set, uint32_t format, /** * Intersect two DRM format sets `a` and `b`, storing in the destination set - * `dst` the format + modifier pairs which are in both source sets. + * `dst` the format + modifier pairs which are in both source sets. The `dst` + * must either be zeroed or initialized with other state to be replaced. * * Returns false on failure or when the intersection is empty. */ |