aboutsummaryrefslogtreecommitdiff
path: root/unstable
diff options
context:
space:
mode:
authorVarad Gautam <varad.gautam@collabora.com>2017-01-19 13:48:02 +0530
committerDaniel Stone <daniels@collabora.com>2017-05-19 10:53:30 +0100
commit4ecdb097dba5ff71cf47dac2c24664ec3ace5b43 (patch)
tree19310d9b4f5b518a8ba22c62c4529aa2fe69ccb7 /unstable
parenta840b3634ad637b237f238d2efb9ab8f4712d5f4 (diff)
linux-dmabuf: advertise format modifiers with modifier event
advertise the supported fourcc format modifiers along with supported formats to the client. the 'modifier' event introduced here is intended to replace the 'format' event from zwp_linux_dmabuf_v1 version 1. bump zwp_linux_dmabuf_v1, zwp_linux_buffer_params_v1 interface versions to 3. v2: specify request name in event description for clarity (Yong Bakos) v3: grammar fixup (Yong Bakos) v4: add deprecation warning against 'format' event usage (pq) Signed-off-by: Varad Gautam <varad.gautam@collabora.com> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Yong Bakos <ybakos@humanoriented.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
Diffstat (limited to 'unstable')
-rw-r--r--unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml28
1 files changed, 25 insertions, 3 deletions
diff --git a/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml b/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
index 63fbb2d..4c21c29 100644
--- a/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
+++ b/unstable/linux-dmabuf/linux-dmabuf-unstable-v1.xml
@@ -32,7 +32,8 @@
This interface offers ways to create generic dmabuf-based
wl_buffers. Immediately after a client binds to this interface,
- the set of supported formats is sent with 'format' events.
+ the set of supported formats and format modifiers is sent with
+ 'format' and 'modifier' events.
The following are required from clients:
@@ -112,13 +113,34 @@
For the definition of the format codes, see the
zwp_linux_buffer_params_v1::create request.
- XXX: Can a compositor ever enumerate them?
+ Warning: the 'format' event is likely to be deprecated and replaced
+ with the 'modifier' event introduced in zwp_linux_dmabuf_v1
+ version 3, described below. Please refrain from using the information
+ received from this event.
</description>
<arg name="format" type="uint" summary="DRM_FORMAT code"/>
</event>
+
+ <event name="modifier" since="3">
+ <description summary="supported buffer format modifier">
+ This event advertises the formats that the server supports, along with
+ the modifiers supported for each format. All the supported modifiers
+ for all the supported formats are advertised once when the client
+ binds to this interface. A roundtrip after binding guarantees that
+ the client has received all supported format-modifier pairs.
+
+ For the definition of the format and modifier codes, see the
+ zwp_linux_buffer_params_v1::create request.
+ </description>
+ <arg name="format" type="uint" summary="DRM_FORMAT code"/>
+ <arg name="modifier_hi" type="uint"
+ summary="high 32 bits of layout modifier"/>
+ <arg name="modifier_lo" type="uint"
+ summary="low 32 bits of layout modifier"/>
+ </event>
</interface>
- <interface name="zwp_linux_buffer_params_v1" version="2">
+ <interface name="zwp_linux_buffer_params_v1" version="3">
<description summary="parameters for creating a dmabuf-based wl_buffer">
This temporary object is a collection of dmabufs and other
parameters that together form a single logical buffer. The temporary