diff options
author | Simon Ser <contact@emersion.fr> | 2023-10-18 14:51:29 +0200 |
---|---|---|
committer | Alexander Orzechowski <alex@ozal.ski> | 2024-01-03 20:52:34 +0000 |
commit | 2f2a55ebd3c5a950f1bf8c280edf0838721363da (patch) | |
tree | 130e5a7cd5978daed38b138b33935e269970cf74 /render/wlr_renderer.c | |
parent | d0da76fbf6058af3068f49335c33c6d457ccf1fe (diff) |
render: stop auto-creating wl_drm
wl_drm is a legacy interface superseded by the linux-dmabuf
protocol. All clients should migrate.
As a first step, stop creating the wl_drm global by default.
This should let us discover any remaining issues in clients.
Compositors can still manually create the global if they want to.
As a second step, we can completely drop our implementation.
Diffstat (limited to 'render/wlr_renderer.c')
-rw-r--r-- | render/wlr_renderer.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/render/wlr_renderer.c b/render/wlr_renderer.c index d8c02411..0ddb364e 100644 --- a/render/wlr_renderer.c +++ b/render/wlr_renderer.c @@ -95,14 +95,9 @@ bool wlr_renderer_init_wl_display(struct wlr_renderer *r, } 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) { - return false; - } + wlr_renderer_get_drm_fd(r) >= 0 && + wlr_linux_dmabuf_v1_create_with_renderer(wl_display, 4, r) == NULL) { + return false; } return true; |