From 46c42e55c6e0b08d9e7db989d6a10f073525e999 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 21 Jul 2021 15:58:01 +0200 Subject: backend/drm: add support for FB_DAMAGE_CLIPS This allows the kernel to access our buffer damage. Some drivers can take advantage of this, e.g. for PSR2 panels (Panel Self Refresh) or for transfer over USB. Closes: https://github.com/swaywm/wlroots/issues/1267 --- include/backend/drm/properties.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/backend/drm') diff --git a/include/backend/drm/properties.h b/include/backend/drm/properties.h index 9e1fe0b6..bd90871d 100644 --- a/include/backend/drm/properties.h +++ b/include/backend/drm/properties.h @@ -59,8 +59,9 @@ union wlr_drm_plane_props { uint32_t crtc_h; uint32_t fb_id; uint32_t crtc_id; + uint32_t fb_damage_clips; }; - uint32_t props[13]; + uint32_t props[14]; }; bool get_drm_connector_props(int fd, uint32_t id, -- cgit v1.2.3