Skip to content
Snippets Groups Projects
Commit 0c4e041f authored by Simon Ser's avatar Simon Ser Committed by Daniel Stone
Browse files

linux-dmabuf: require all planes to use the same modifier


The kernel enforces this. Accepting a separate modifier per-plane is
an historical artifact.

Signed-off-by: Simon Ser's avatarSimon Ser <contact@emersion.fr>
Closes: wayland/wayland-protocols#29
parent 3ec59242
No related branches found
No related tags found
No related merge requests found
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
DEALINGS IN THE SOFTWARE. DEALINGS IN THE SOFTWARE.
</copyright> </copyright>
<interface name="zwp_linux_dmabuf_v1" version="4"> <interface name="zwp_linux_dmabuf_v1" version="5">
<description summary="factory for creating dmabuf-based wl_buffers"> <description summary="factory for creating dmabuf-based wl_buffers">
Following the interfaces from: Following the interfaces from:
https://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_image_dma_buf_import.txt https://www.khronos.org/registry/egl/extensions/EXT/EGL_EXT_image_dma_buf_import.txt
...@@ -190,7 +190,7 @@ ...@@ -190,7 +190,7 @@
</request> </request>
</interface> </interface>
<interface name="zwp_linux_buffer_params_v1" version="4"> <interface name="zwp_linux_buffer_params_v1" version="5">
<description summary="parameters for creating a dmabuf-based wl_buffer"> <description summary="parameters for creating a dmabuf-based wl_buffer">
This temporary object is a collection of dmabufs and other This temporary object is a collection of dmabufs and other
parameters that together form a single logical buffer. The temporary parameters that together form a single logical buffer. The temporary
...@@ -250,6 +250,9 @@ ...@@ -250,6 +250,9 @@
Starting from version 4, the invalid_format protocol error is sent if Starting from version 4, the invalid_format protocol error is sent if
the format + modifier pair was not advertised as supported. the format + modifier pair was not advertised as supported.
Starting from version 5, the invalid_format protocol error is sent if
all planes don't use the same modifier.
This request raises the PLANE_IDX error if plane_idx is too large. 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 The error PLANE_SET is raised if attempting to set a plane that
was already set. was already set.
...@@ -397,7 +400,7 @@ ...@@ -397,7 +400,7 @@
</request> </request>
</interface> </interface>
<interface name="zwp_linux_dmabuf_feedback_v1" version="4"> <interface name="zwp_linux_dmabuf_feedback_v1" version="5">
<description summary="dmabuf feedback"> <description summary="dmabuf feedback">
This object advertises dmabuf parameters feedback. This includes the This object advertises dmabuf parameters feedback. This includes the
preferred devices and the supported formats/modifiers. preferred devices and the supported formats/modifiers.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment