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
This commit is contained in:
Simon Ser 2021-07-21 15:58:01 +02:00
parent 109405729b
commit 46c42e55c6
3 changed files with 24 additions and 1 deletions

View file

@ -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,