summaryrefslogtreecommitdiff
path: root/unstable
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-09-27 11:13:39 +0200
committerSimon Ser <contact@emersion.fr>2021-11-23 09:52:53 +0100
commitc62be976d712b82ea676de7e64bf333b43492d0e (patch)
tree034389ed50f22244c103100b2090f2cba26d3c65 /unstable
parent8a5cd28a0e84911a5339855cb32ed63fb57ea40a (diff)
downloadwayland-protocols-c62be976d712b82ea676de7e64bf333b43492d0e.tar.gz
linux-dmabuf: send protocol error on invalid format/modifier
Now that compositors must send INVALID to advertise support for implicit modifiers, we can make it a protocol error to add a DMA-BUF plane with an unsupported format + modifier pair. Signed-off-by: Simon Ser <contact@emersion.fr> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'unstable')
-rw-r--r--unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml6
1 files changed, 2 insertions, 4 deletions
diff --git a/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml b/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
index 14cf242..018f876 100644
--- a/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
+++ b/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
@@ -247,10 +247,8 @@
compression, etc. driver-specific modifications to the base format
defined by the DRM fourcc code.
- Warning: It should be an error if the format/modifier pair was not
- advertised by zwp_linux_dmabuf_feedback_v1. This is not enforced yet
- because some implementations always accept DRM_FORMAT_MOD_INVALID. Also
- version 2 of this protocol does not have the modifier event.
+ Starting from version 4, the invalid_format protocol error is sent if
+ the format + modifier pair was not advertised as supported.
This request raises the PLANE_IDX error if plane_idx is too large.
The error PLANE_SET is raised if attempting to set a plane that