mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Multi-GPU DRM
This commit is contained in:
parent
fa3d0ed929
commit
009c3747a8
11 changed files with 184 additions and 14 deletions
|
|
@ -109,7 +109,8 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) {
|
|||
wlr_log(L_INFO, "Found %zu GPUs", num_gpus);
|
||||
|
||||
for (size_t i = 0; i < num_gpus; ++i) {
|
||||
struct wlr_backend *drm = wlr_drm_backend_create(display, session, gpus[i]);
|
||||
struct wlr_backend *drm = wlr_drm_backend_create(display, session,
|
||||
gpus[i], primary_drm);
|
||||
if (!drm) {
|
||||
wlr_log(L_ERROR, "Failed to open DRM device");
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue