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:
Simon Zeni 2024-05-14 09:21:08 -04:00 committed by Simon Ser
parent 6219d7b819
commit 325d843814

View File

@ -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;
}
}