aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-15 09:53:15 +0100
committerSimon Ser <contact@emersion.fr>2020-12-22 15:53:10 +0100
commit5ee8b12dc3fe26f27116547d480c2b2637b242bb (patch)
treee450aba818bfc35b941d13e961afb477ef8299a9 /include/backend/drm
parentd09abe86c15a26c25fa788f03438c55f701f4aed (diff)
backend/drm: make drm_fb_acquire return a FB ID
Diffstat (limited to 'include/backend/drm')
-rw-r--r--include/backend/drm/renderer.h4
1 files changed, 3 insertions, 1 deletions
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,