<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wayland-protocols.git/unstable/linux-dmabuf, branch master</title>
<subtitle>action binder protocol
</subtitle>
<id>https://git.vlhl.dev/navi/wayland/wayland-protocols.git/atom?h=master</id>
<link rel='self' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/'/>
<updated>2023-04-18T12:06:04+00:00</updated>
<entry>
<title>linux-dmabuf: Fix a couple of typos</title>
<updated>2023-04-18T12:06:04+00:00</updated>
<author>
<name>Vlad Zahorodnii</name>
<email>vlad.zahorodnii@kde.org</email>
</author>
<published>2023-04-18T11:59:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=fefd185994bdf6673e86a89ae5c63987841dbb6c'/>
<id>urn:sha1:fefd185994bdf6673e86a89ae5c63987841dbb6c</id>
<content type='text'>
There are no interfaces such as zlinux_dmabuf_params and zlinux_buffer_params.

Signed-off-by: Vlad Zahorodnii &lt;vlad.zahorodnii@kde.org&gt;
</content>
</entry>
<entry>
<title>linux-dmabuf: fix references to tranche_formats</title>
<updated>2022-11-14T11:08:21+00:00</updated>
<author>
<name>Manuel Stoeckl</name>
<email>code@mstoeckl.com</email>
</author>
<published>2022-11-02T23:01:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=4f18a5baeece5e37c31164af42bcc20b8460727f'/>
<id>urn:sha1:4f18a5baeece5e37c31164af42bcc20b8460727f</id>
<content type='text'>
Signed-off-by: Manuel Stoeckl &lt;code@mstoeckl.com&gt;
</content>
</entry>
<entry>
<title>linux-dmabuf: fix typo in dev_t example code</title>
<updated>2022-01-17T14:54:49+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2021-12-08T00:17:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=c2ceb5f14d0af04c248e03c125d2ed85980cf806'/>
<id>urn:sha1:c2ceb5f14d0af04c248e03c125d2ed85980cf806</id>
<content type='text'>
dev_t is not a struct, it's a typedef.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>linux-dmabuf: send protocol error on invalid format/modifier</title>
<updated>2021-11-23T08:52:53+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2021-09-27T09:13:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=c62be976d712b82ea676de7e64bf333b43492d0e'/>
<id>urn:sha1:c62be976d712b82ea676de7e64bf333b43492d0e</id>
<content type='text'>
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 &lt;contact@emersion.fr&gt;
Reviewed-by: Daniel Stone &lt;daniels@collabora.com&gt;
</content>
</entry>
<entry>
<title>unstable/linux-dmabuf: add wp_linux_dmabuf_feedback</title>
<updated>2021-11-23T08:47:24+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2018-11-01T16:25:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=8a5cd28a0e84911a5339855cb32ed63fb57ea40a'/>
<id>urn:sha1:8a5cd28a0e84911a5339855cb32ed63fb57ea40a</id>
<content type='text'>
On multi-GPU setups, multiple devices can be used for rendering. Clients
need feedback about the device in use by the compositor. For instance,
if they render on another GPU, then they need to make sure the memory is
accessible between devices and that their buffers are not placed in
hidden memory.

This commit introduces a new wp_linux_dmabuf_feedback object. This
object advertises a preferred main device, a set of preferred
formats/modifiers and target devices.

Each object is bound to a wl_surface and can dynamically update its
feedback parameters. This enables fine-grained per-surface
optimizations. For instance, when a surface is scanned out on a GPU the
compositor isn't compositing with, the target device can be set to this
GPU to avoid unnecessary roundtrips.

A feedback object can also be standalone for clients that don't support
per-surface feedback.

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
Signed-off-by: Leandro Ribeiro &lt;leandro.ribeiro@collabora.com&gt;
Reviewed-by: Daniel Stone &lt;daniels@collabora.com&gt;
Closes: https://gitlab.freedesktop.org/wayland/wayland/issues/59
</content>
</entry>
<entry>
<title>linux-dmabuf: add note about pre-multiplied alpha</title>
<updated>2021-11-10T15:01:34+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2021-11-04T08:51:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=40cb7d47e639f3f7e3a36963094fcef40cdf2f7c'/>
<id>urn:sha1:40cb7d47e639f3f7e3a36963094fcef40cdf2f7c</id>
<content type='text'>
Add a note about pre-multiplied alpha for all DRM formats.
Include an escape hatch in the spec to allow other protocol
extensions to override this.

Essentially the same as [1].

[1]: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/187

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>linux-dmabuf: clarify what mixed valid/INVALID modifiers mean</title>
<updated>2021-03-31T07:24:53+00:00</updated>
<author>
<name>Simon Ser</name>
<email>contact@emersion.fr</email>
</author>
<published>2021-03-23T22:08:00+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=3683a5eb6642422c50d3beeb236a0e52b72971f6'/>
<id>urn:sha1:3683a5eb6642422c50d3beeb236a0e52b72971f6</id>
<content type='text'>
This commit makes it clear that compositors can send valid modifiers and
DRM_FORMAT_MOD_INVALID for a given format. This means that the compositor
supports both implicit and explicit modifiers. See the warning further
down:

&gt; Warning: It should be an error if the format/modifier pair was not
&gt; advertised with the modifier event. This is not enforced yet because
&gt; some implementations always accept DRM_FORMAT_MOD_INVALID. Also
&gt; version 2 of this protocol does not have the modifier event.

Xwayland already requires compositors to send DRM_FORMAT_MOD_INVALID
for importing buffers with an implicit modifier [1].

In a future protocol version, it would be nice to make it a protocol
error (or at least a soft failure) to use any format/modifier pair that
wasn't advertised. A use-case for this is Vulkan compositors: the Vulkan
DMA-BUF extensions require an explicit modifier and cannot import
buffers which have an implicit modifier.

[1]: https://gitlab.freedesktop.org/xorg/xserver/-/blob/6c51818a0f55282cbe5a870f58ca82ca45ee472d/hw/xwayland/xwayland-glamor-gbm.c#L328

Signed-off-by: Simon Ser &lt;contact@emersion.fr&gt;
</content>
</entry>
<entry>
<title>linux-dmabuf: no buffer errors on device disappearance</title>
<updated>2021-02-16T09:32:58+00:00</updated>
<author>
<name>Pekka Paalanen</name>
<email>pekka.paalanen@collabora.com</email>
</author>
<published>2020-06-01T13:47:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=f899eff0a7da3db1e47b95c648848a50e38cc29c'/>
<id>urn:sha1:f899eff0a7da3db1e47b95c648848a50e38cc29c</id>
<content type='text'>
This was prompted by the discussion from
https://lists.freedesktop.org/archives/dri-devel/2020-May/266611.html
which is not the final wording.

When a DRM device is hot-unplugged, particularly if it is the Wayland
compositor's compositing GPU, EGL may start returning errors from trying to use
the client's dmabuf. Or, if the client is rendering on another GPU which gets
hot-unplugged, the dmabuf the compositor already has may start failing.

Hot-unplug is an abrupt global action, and there is no way a client or a
compositor could ensure they clean up before things start failing. It is not
the client's fault, so the client should not get disconnected if already
existing wl_buffer objects start failing. This patch add the wording to the
protocol to this effect.

The intention is that the compositor replaces the failed buffers with some
placeholder content. There is no way this could be glitch-free. In its own pace
the client should discover the DRM device is gone, clean up, and perhaps use
something else. How exactly that should happen depends on the rendering API the
client is using.

This is a tiny step towards making DRM device hot-unplug not crash
applications that wish to handle the unplug gracefully.

Signed-off-by: Pekka Paalanen &lt;pekka.paalanen@collabora.com&gt;
</content>
</entry>
<entry>
<title>linux-dmabuf: Add enum attribute to 'flags'</title>
<updated>2021-01-05T18:36:32+00:00</updated>
<author>
<name>onox</name>
<email>denkpadje@gmail.com</email>
</author>
<published>2021-01-03T18:55:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=0bb5f5fe680137524ac17196bbf87fedc2ee5065'/>
<id>urn:sha1:0bb5f5fe680137524ac17196bbf87fedc2ee5065</id>
<content type='text'>
Signed-off-by: onox &lt;denkpadje@gmail.com&gt;
</content>
</entry>
<entry>
<title>linux-dmabuf: clarify DRM_FORMAT_MOD_INVALID</title>
<updated>2019-05-02T11:30:32+00:00</updated>
<author>
<name>Chia-I Wu</name>
<email>olvaffe@gmail.com</email>
</author>
<published>2019-04-17T16:40:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.vlhl.dev/navi/wayland/wayland-protocols.git/commit/?id=fb9b2a87317c77e26283da5f6c9559d709f6fdcd'/>
<id>urn:sha1:fb9b2a87317c77e26283da5f6c9559d709f6fdcd</id>
<content type='text'>
DRM_FORMAT_MOD_INVALID means to derive the modifier from the dmabuf.
It provides legacy support and makes it easier to replace wl_drm.

v3: DRM_FORMAT_MOD_INVALID must be advertised to be supported (which
    requires a version bump)
v4: no version bump, but a note for now

Signed-off-by: Chia-I Wu &lt;olvaffe@gmail.com&gt;
Reviewed-by: Pekka Paalanen &lt;pekka.paalanen@collabora.com&gt;
Reviewed-by: Simon Ser &lt;contact@emersion.fr&gt;
Reviewed-by: Daniel Stone &lt;daniels@collabora.com&gt;
</content>
</entry>
</feed>
