types/buffer: add prefer_shadow field to wlr_dmabuf_attribute

This new field is used when the underlying buffer implementation prefers to use shadow buffers
instead of rendering directly to the hardware buffer.
This commit is contained in:
Simon Zeni 2023-11-03 15:12:24 -04:00
parent 26eac25d7f
commit 34a57e50ed

View file

@ -35,6 +35,7 @@ struct wlr_dmabuf_attributes {
int32_t width, height; int32_t width, height;
uint32_t format; // FourCC code, see DRM_FORMAT_* in <drm_fourcc.h> uint32_t format; // FourCC code, see DRM_FORMAT_* in <drm_fourcc.h>
uint64_t modifier; // see DRM_FORMAT_MOD_* in <drm_fourcc.h> uint64_t modifier; // see DRM_FORMAT_MOD_* in <drm_fourcc.h>
bool prefer_shadow;
int n_planes; int n_planes;
uint32_t offset[WLR_DMABUF_MAX_PLANES]; uint32_t offset[WLR_DMABUF_MAX_PLANES];