From 34a57e50ed7c0a1623067a43dbc22ebbe95eab4b Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Fri, 3 Nov 2023 15:12:24 -0400 Subject: [PATCH] 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. --- include/wlr/render/dmabuf.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/wlr/render/dmabuf.h b/include/wlr/render/dmabuf.h index 62f8e0217..3100ece84 100644 --- a/include/wlr/render/dmabuf.h +++ b/include/wlr/render/dmabuf.h @@ -35,6 +35,7 @@ struct wlr_dmabuf_attributes { int32_t width, height; uint32_t format; // FourCC code, see DRM_FORMAT_* in uint64_t modifier; // see DRM_FORMAT_MOD_* in + bool prefer_shadow; int n_planes; uint32_t offset[WLR_DMABUF_MAX_PLANES];