mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-18 06:47:31 -04:00
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:
parent
26eac25d7f
commit
34a57e50ed
1 changed files with 1 additions and 0 deletions
|
|
@ -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];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue