From c19eef3f5e2f3ef5bf1a1c6a76fb6ebfe5d07b45 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Mon, 11 Dec 2023 13:48:30 +0100 Subject: [PATCH] wayland/dmabuf: Bump protocol version to 5 It adds the following clarification: ``` Starting from version 5, the invalid_format protocol error is sent if all planes don't use the same modifier. ``` We already send an error, just the wrong one. Part-of: --- src/wayland/meta-wayland-dma-buf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wayland/meta-wayland-dma-buf.c b/src/wayland/meta-wayland-dma-buf.c index 2359511c9..00a663e42 100644 --- a/src/wayland/meta-wayland-dma-buf.c +++ b/src/wayland/meta-wayland-dma-buf.c @@ -713,7 +713,7 @@ buffer_params_add (struct wl_client *client, dma_buf->drm_modifier != drm_modifier) { wl_resource_post_error (resource, - ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_WL_BUFFER, + ZWP_LINUX_BUFFER_PARAMS_V1_ERROR_INVALID_FORMAT, "mismatching modifier between planes"); return; } @@ -1843,7 +1843,7 @@ meta_wayland_dma_buf_manager_new (MetaWaylandCompositor *compositor, device_id = device_stat.st_rdev; - protocol_version = 4; + protocol_version = 5; initialize: