aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-07-21 15:58:01 +0200
committerSimon Ser <contact@emersion.fr>2021-08-18 20:59:25 +0200
commit46c42e55c6e0b08d9e7db989d6a10f073525e999 (patch)
tree01e377dd7b83a044e7a7fbd5f2cc26cf16f0ebc6 /include/backend/drm
parent109405729b5a384b08f2faf6196e8a31041eab8f (diff)
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
Diffstat (limited to 'include/backend/drm')
-rw-r--r--include/backend/drm/properties.h3
1 files changed, 2 insertions, 1 deletions
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,