From 5ee8b12dc3fe26f27116547d480c2b2637b242bb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 15 Dec 2020 09:53:15 +0100 Subject: backend/drm: make drm_fb_acquire return a FB ID --- include/backend/drm/renderer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/backend') diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h index 9171edc0..a6d75a90 100644 --- a/include/backend/drm/renderer.h +++ b/include/backend/drm/renderer.h @@ -38,6 +38,8 @@ struct wlr_drm_fb { struct wlr_drm_surface *mgpu_surf; struct gbm_bo *mgpu_bo; struct wlr_buffer *mgpu_wlr_buf; + + uint32_t id; }; bool init_drm_renderer(struct wlr_drm_backend *drm, @@ -55,7 +57,7 @@ bool drm_fb_import_wlr(struct wlr_drm_fb *fb, struct wlr_drm_renderer *renderer, void drm_fb_move(struct wlr_drm_fb *new, struct wlr_drm_fb *old); bool drm_surface_render_black_frame(struct wlr_drm_surface *surf); -struct gbm_bo *drm_fb_acquire(struct wlr_drm_fb *fb, struct wlr_drm_backend *drm, +uint32_t drm_fb_acquire(struct wlr_drm_fb *fb, struct wlr_drm_backend *drm, struct wlr_drm_surface *mgpu); bool drm_plane_init_surface(struct wlr_drm_plane *plane, -- cgit v1.2.3