From 99e375c7880d6863da297a2d402670472b20e2d6 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Fri, 16 Feb 2024 12:05:27 -0800 Subject: [PATCH] Advertise dmabuf v5 The code to raise a protocol error if planes had different modifiers is already present, this just needed `wayland-protocols` to support version 5. --- Cargo.toml | 2 +- src/wayland/dmabuf/mod.rs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f398ebd882d3..e35e327f7f19 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -54,7 +54,7 @@ tempfile = { version = "3.0", optional = true } thiserror = "1.0.25" udev = { version = "0.8.0", optional = true } wayland-egl = { version = "0.32.0", optional = true } -wayland-protocols = { version = "0.31.0", features = ["unstable", "staging", "server"], optional = true } +wayland-protocols = { version = "0.31.2", features = ["unstable", "staging", "server"], optional = true } wayland-protocols-wlr = { version = "0.2.0", features = ["server"], optional = true } wayland-protocols-misc = { version = "0.2.0", features = ["server"], optional = true } wayland-server = { version = "0.31.0", optional = true } diff --git a/src/wayland/dmabuf/mod.rs b/src/wayland/dmabuf/mod.rs index 4a56ea20edd6..b4095ad3a75d 100644 --- a/src/wayland/dmabuf/mod.rs +++ b/src/wayland/dmabuf/mod.rs @@ -710,8 +710,7 @@ impl DmabufState { let formats = Arc::new(formats); let version = if default_feedback.is_some() { - // TODO: Update to 5 when wayland-protocols is updated - 4 + 5 } else { 3 };