diff options
author | Simon Ser <contact@emersion.fr> | 2021-07-12 17:30:45 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-07-28 22:52:35 +0200 |
commit | c55f70c8b7222cfaa33fc9634250027a95c1b066 (patch) | |
tree | f85e24b9aad661f2b79405b583d6994b3555627c /include | |
parent | c74dc45bb68c43a14d638b4c2b71e84ea4f94951 (diff) |
backend/drm: stop initializing renderer for parent backend
Unless we're dealing with a multi-GPU setup and the backend being
initialized is secondary, we don't need a renderer nor an allocator.
Stop initializing these.
Diffstat (limited to 'include')
-rw-r--r-- | include/backend/drm/drm.h | 5 | ||||
-rw-r--r-- | include/backend/drm/renderer.h | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/include/backend/drm/drm.h b/include/backend/drm/drm.h index 881d4718..9aae5e0b 100644 --- a/include/backend/drm/drm.h +++ b/include/backend/drm/drm.h @@ -62,6 +62,7 @@ struct wlr_drm_backend { int fd; char *name; struct wlr_device *dev; + struct gbm_device *gbm; size_t num_crtcs; struct wlr_drm_crtc *crtcs; @@ -79,7 +80,9 @@ struct wlr_drm_backend { struct wl_list fbs; // wlr_drm_fb.link struct wl_list outputs; - struct wlr_drm_renderer renderer; + /* Only initialized on multi-GPU setups */ + struct wlr_drm_renderer mgpu_renderer; + struct wlr_session *session; uint64_t cursor_width, cursor_height; diff --git a/include/backend/drm/renderer.h b/include/backend/drm/renderer.h index 528f2189..f6b996c7 100644 --- a/include/backend/drm/renderer.h +++ b/include/backend/drm/renderer.h @@ -13,7 +13,6 @@ struct wlr_buffer; struct wlr_drm_renderer { struct wlr_drm_backend *backend; - struct gbm_device *gbm; struct wlr_renderer *wlr_rend; struct wlr_allocator *allocator; |