render/drm_syncobj: add wlr_drm_syncobj_timeline_transfer()

This commit is contained in:
Simon Ser 2021-10-21 15:23:20 +02:00
parent 3067e45c2e
commit 5552de65f8
2 changed files with 20 additions and 0 deletions

View file

@ -62,6 +62,13 @@ struct wlr_drm_syncobj_timeline *wlr_drm_syncobj_timeline_ref(struct wlr_drm_syn
* Unreference a synchronization timeline.
*/
void wlr_drm_syncobj_timeline_unref(struct wlr_drm_syncobj_timeline *timeline);
/**
* Transfer a point from a timeline to another.
*
* Both timelines must have been created with the same DRM FD.
*/
bool wlr_drm_syncobj_timeline_transfer(struct wlr_drm_syncobj_timeline *dst,
uint64_t dst_point, struct wlr_drm_syncobj_timeline *src, uint64_t src_point);
/**
* Check if a timeline point has been signalled or has materialized.
*