river: drop support for wl_drm

wl_drm is a legacy interface superseded by the linux-dmabuf
protocol. All clients should migrate.

This commit drops support for the protocol which should help find
whatever problematic clients are left in the wild.

If it turns out that this is too soon we can easily keep supporting
wl_drm for a little while longer as wlroots has not yet dropped support
for it.
This commit is contained in:
Isaac Freund 2024-01-03 17:18:59 -06:00
parent 6a74ed99fa
commit 80ced04f68
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11
2 changed files with 7 additions and 2 deletions

2
deps/zig-wlroots vendored

@ -1 +1 @@
Subproject commit 13fdf6c0677d50db501fcb8bacfc6ae0a27ee9eb
Subproject commit 0644a408625e6d1f7d0631f43b95c6f38a595c7c

View File

@ -94,7 +94,12 @@ pub fn init(self: *Self) !void {
self.renderer = try wlr.Renderer.autocreate(self.backend);
errdefer self.renderer.destroy();
try self.renderer.initServer(self.wl_server);
try self.renderer.initWlShm(self.wl_server);
if (self.renderer.getDmabufFormats() != null and self.renderer.getDrmFd() >= 0) {
_ = try wlr.LinuxDmabufV1.createWithRenderer(self.wl_server, 4, self.renderer);
}
self.allocator = try wlr.Allocator.autocreate(self.backend, self.renderer);
errdefer self.allocator.destroy();