cursor: add support for linux-drm-syncobj-v1

This commit is contained in:
Simon Ser 2024-05-10 18:32:04 +02:00
parent 5f88635118
commit 738bbf01ee
4 changed files with 40 additions and 6 deletions

View file

@ -18,7 +18,8 @@ bool output_ensure_buffer(struct wlr_output *output,
bool output_cursor_set_texture(struct wlr_output_cursor *cursor,
struct wlr_texture *texture, bool own_texture, const struct wlr_fbox *src_box,
int dst_width, int dst_height, enum wl_output_transform transform,
int32_t hotspot_x, int32_t hotspot_y);
int32_t hotspot_x, int32_t hotspot_y, struct wlr_drm_syncobj_timeline *wait_timeline,
uint64_t wait_point);
void output_defer_present(struct wlr_output *output, struct wlr_output_event_present event);

View file

@ -45,6 +45,8 @@ struct wlr_output_cursor {
int32_t hotspot_x, hotspot_y;
struct wlr_texture *texture;
bool own_texture;
struct wlr_drm_syncobj_timeline *wait_timeline;
uint64_t wait_point;
struct wl_listener renderer_destroy;
struct wl_list link;
};