linux-dmabuf: add note about pre-multiplied alpha

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 <contact@emersion.fr>
This commit is contained in:
Simon Ser 2021-11-04 09:51:44 +01:00
parent 61038f8a19
commit 40cb7d47e6

View file

@ -82,6 +82,9 @@
client. If the client uses a failed wl_buffer as an argument to any
request, the behaviour is compositor implementation-defined.
For all DRM formats and unless specified in another protocol extension,
pre-multiplied alpha is used for pixel values.
Warning! The protocol described in this file is experimental and
backward incompatible changes may be made. Backward compatible changes
may be added together with the corresponding interface version bump.