aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-15 12:21:40 +0100
committerSimon Ser <contact@emersion.fr>2020-12-22 15:53:10 +0100
commitd3bcd63a4002394f86a2d7fe80dcb2d5b4ea5f93 (patch)
tree0e710a919ef7551da8928eb0832756d3279eab59 /include/backend
parent5ee8b12dc3fe26f27116547d480c2b2637b242bb (diff)
backend/drm: remove drm_fb_acquire
Instead, import the buffer into GBM and KMS in drm_fb_import. Also move the multi-GPU copy there if necessary.
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/drm/renderer.h16
1 files changed, 7 insertions, 9 deletions
diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h
index a6d75a90..4a86e46e 100644
--- a/include/backend/drm/renderer.h
+++ b/include/backend/drm/renderer.h
@@ -13,7 +13,7 @@ struct wlr_drm_plane;
struct wlr_buffer;
struct wlr_drm_renderer {
- int fd;
+ struct wlr_drm_backend *backend;
struct gbm_device *gbm;
struct wlr_egl egl;
@@ -32,13 +32,11 @@ struct wlr_drm_surface {
};
struct wlr_drm_fb {
- struct gbm_bo *bo;
struct wlr_buffer *wlr_buf;
- struct wlr_drm_surface *mgpu_surf;
- struct gbm_bo *mgpu_bo;
struct wlr_buffer *mgpu_wlr_buf;
+ struct gbm_bo *bo;
uint32_t id;
};
@@ -50,15 +48,15 @@ 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_surface *surf);
-bool drm_fb_import_wlr(struct wlr_drm_fb *fb, struct wlr_drm_renderer *renderer,
- struct wlr_buffer *buf, struct wlr_drm_format_set *set);
+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,
+ struct wlr_drm_format_set *set);
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);
-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,
struct wlr_drm_backend *drm, int32_t width, uint32_t height,