diff options
author | Simon Ser <contact@emersion.fr> | 2024-01-20 10:57:01 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2024-01-20 14:42:58 -0500 |
commit | 08a06a7b6bbb324e9fc6e49e96379340404135b4 (patch) | |
tree | 6f08f51db18844703360ac571ad3c11e618dce58 /sway/server.c | |
parent | Clarify gdk-pixbuf dependency purpose (diff) | |
download | sway-08a06a7b6bbb324e9fc6e49e96379340404135b4.tar.gz sway-08a06a7b6bbb324e9fc6e49e96379340404135b4.tar.zst sway-08a06a7b6bbb324e9fc6e49e96379340404135b4.zip |
Add debug flag to re-enable wl_drm
7e69a7076fc8 ("Drop wl_drm") has dropped wl_drm, however a lot of
software wasn't quite ready for this (Xwayland, libva, amdvlk).
Keep wl_drm disabled by default to pressure the wl_drm phase-out,
but add a -Dlegacy-wl-drm flag for users to restore the previous
behavior in the meantime.
References: https://github.com/swaywm/sway/issues/7897
Diffstat (limited to 'sway/server.c')
-rw-r--r-- | sway/server.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index 33b25000..73bf9d70 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -13,6 +13,7 @@ | |||
13 | #include <wlr/types/wlr_content_type_v1.h> | 13 | #include <wlr/types/wlr_content_type_v1.h> |
14 | #include <wlr/types/wlr_cursor_shape_v1.h> | 14 | #include <wlr/types/wlr_cursor_shape_v1.h> |
15 | #include <wlr/types/wlr_data_control_v1.h> | 15 | #include <wlr/types/wlr_data_control_v1.h> |
16 | #include <wlr/types/wlr_drm.h> | ||
16 | #include <wlr/types/wlr_export_dmabuf_v1.h> | 17 | #include <wlr/types/wlr_export_dmabuf_v1.h> |
17 | #include <wlr/types/wlr_fractional_scale_v1.h> | 18 | #include <wlr/types/wlr_fractional_scale_v1.h> |
18 | #include <wlr/types/wlr_gamma_control_v1.h> | 19 | #include <wlr/types/wlr_gamma_control_v1.h> |
@@ -191,6 +192,10 @@ bool server_init(struct sway_server *server) { | |||
191 | server->linux_dmabuf_v1 = wlr_linux_dmabuf_v1_create_with_renderer( | 192 | server->linux_dmabuf_v1 = wlr_linux_dmabuf_v1_create_with_renderer( |
192 | server->wl_display, 4, server->renderer); | 193 | server->wl_display, 4, server->renderer); |
193 | } | 194 | } |
195 | if (wlr_renderer_get_dmabuf_texture_formats(server->renderer) != NULL && | ||
196 | debug.legacy_wl_drm) { | ||
197 | wlr_drm_create(server->wl_display, server->renderer); | ||
198 | } | ||
194 | 199 | ||
195 | server->allocator = wlr_allocator_autocreate(server->backend, | 200 | server->allocator = wlr_allocator_autocreate(server->backend, |
196 | server->renderer); | 201 | server->renderer); |