From 325d8438147ebba6b9756e0d9d2b720c1ced351a Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Tue, 14 May 2024 09:21:08 -0400 Subject: [PATCH] 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. --- backend/x11/backend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/x11/backend.c b/backend/x11/backend.c index ae6d55e1..9c8ea326 100644 --- a/backend/x11/backend.c +++ b/backend/x11/backend.c @@ -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; } }