From 5b1b43c68c7ae65c64a0fcb2c15bf403e5a2fa07 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 22 Dec 2020 17:07:29 +0100 Subject: backend/drm: make wlr_drm_plane.{pending,queued,current}_fb pointers This will be useful once we start re-using wlr_drm_fb. --- include/backend/drm/drm.h | 6 +++--- include/backend/drm/renderer.h | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'include') diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 3759ea35..23b06847 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -24,11 +24,11 @@ struct wlr_drm_plane { struct wlr_drm_surface mgpu_surf; /* Buffer to be submitted to the kernel on the next page-flip */ - struct wlr_drm_fb pending_fb; + struct wlr_drm_fb *pending_fb; /* Buffer submitted to the kernel, will be presented on next vblank */ - struct wlr_drm_fb queued_fb; + struct wlr_drm_fb *queued_fb; /* Buffer currently displayed on screen */ - struct wlr_drm_fb current_fb; + struct wlr_drm_fb *current_fb; struct wlr_drm_format_set formats; diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h index d30d4150..71d278ee 100644 --- a/include/backend/drm/renderer.h +++ b/include/backend/drm/renderer.h @@ -45,14 +45,14 @@ void finish_drm_renderer(struct wlr_drm_renderer *renderer); bool drm_surface_make_current(struct wlr_drm_surface *surf, int *buffer_age); void drm_surface_unset_current(struct wlr_drm_surface *surf); -void drm_fb_clear(struct wlr_drm_fb *fb); -bool drm_fb_lock_surface(struct wlr_drm_fb *fb, struct wlr_drm_backend *drm, +bool drm_fb_lock_surface(struct wlr_drm_fb **fb, struct wlr_drm_backend *drm, struct wlr_drm_surface *surf, struct wlr_drm_surface *mgpu); -bool drm_fb_import(struct wlr_drm_fb *fb, struct wlr_drm_backend *drm, +bool drm_fb_import(struct wlr_drm_fb **fb, struct wlr_drm_backend *drm, struct wlr_buffer *buf, struct wlr_drm_surface *mgpu, struct wlr_drm_format_set *set); -void drm_fb_move(struct wlr_drm_fb *new, struct wlr_drm_fb *old); +void drm_fb_clear(struct wlr_drm_fb **fb); +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); -- cgit v1.2.3