aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-11-20 21:18:57 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2023-12-04 15:28:18 +0000
commit4ed8df9ab2fd540113a171940f990874063641ad (patch)
tree8579f4ed983602bf8f1b93d2a67abeed8336bf1b
parentd6859da3b465609a47ce02e700f5f408f5a5d4b8 (diff)
render: disable linux-dmabuf without DRM FD
linux-dmabuf used to not need a DRM FD, however since v4 a DRM FD is required for the main_device event.
-rw-r--r--render/wlr_renderer.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c
index 7f571286..d8c02411 100644
--- a/render/wlr_renderer.c
+++ b/render/wlr_renderer.c
@@ -94,13 +94,10 @@ bool wlr_renderer_init_wl_display(struct wlr_renderer *r,
return false;
}
- if (wlr_renderer_get_dmabuf_texture_formats(r) != NULL) {
- if (wlr_renderer_get_drm_fd(r) >= 0) {
- if (wlr_drm_create(wl_display, r) == NULL) {
- return false;
- }
- } else {
- wlr_log(WLR_INFO, "Cannot get renderer DRM FD, disabling wl_drm");
+ if (wlr_renderer_get_dmabuf_texture_formats(r) != NULL &&
+ wlr_renderer_get_drm_fd(r) >= 0) {
+ if (wlr_drm_create(wl_display, r) == NULL) {
+ return false;
}
if (wlr_linux_dmabuf_v1_create_with_renderer(wl_display, 4, r) == NULL) {