mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
backend/x11: don't exit on dri3 DRM FD query failure
Even if the backend advertises dri3 support, querying the DRM FD may fail. Instead of returning early, the backend creation process must continue because shm might be supported.
This commit is contained in:
parent
6219d7b819
commit
325d843814
1 changed files with 2 additions and 1 deletions
|
|
@ -613,7 +613,8 @@ struct wlr_backend *wlr_x11_backend_create(struct wl_event_loop *loop,
|
|||
x11->drm_fd = query_dri3_drm_fd(x11);
|
||||
if (x11->drm_fd < 0) {
|
||||
wlr_log(WLR_ERROR, "Failed to query DRI3 DRM FD");
|
||||
goto error_event;
|
||||
wlr_log(WLR_INFO, "Disabling DMA-BUF support");
|
||||
x11->have_dri3 = false;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue