aboutsummaryrefslogtreecommitdiff
path: root/include/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-24 18:22:03 +0100
committerSimon Ser <contact@emersion.fr>2021-01-24 18:22:03 +0100
commit4af85f4c19390c5aaa82095614868c16e64bca7c (patch)
tree6dbc63030b15961a06610ad5ec774ea64071fbc7 /include/backend/drm
parent44a3d6e74ddb35f353a92bdd7d004e25c61a2311 (diff)
backend/drm: simplify drm_fb_lock_surface
Make it take a plane instead, and rename to drm_plane_lock_surface.
Diffstat (limited to 'include/backend/drm')
-rw-r--r--include/backend/drm/renderer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h
index fdc8a75d..e0ed8dac 100644
--- a/include/backend/drm/renderer.h
+++ b/include/backend/drm/renderer.h
@@ -46,8 +46,6 @@ 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);
-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,
struct wlr_buffer *buf, struct wlr_drm_surface *mgpu,
const struct wlr_drm_format_set *formats);
@@ -62,5 +60,7 @@ bool drm_plane_init_surface(struct wlr_drm_plane *plane,
struct wlr_drm_backend *drm, int32_t width, uint32_t height,
uint32_t format, bool with_modifiers);
void drm_plane_finish_surface(struct wlr_drm_plane *plane);
+bool drm_plane_lock_surface(struct wlr_drm_plane *plane,
+ struct wlr_drm_backend *drm);
#endif