diff options
| author | Matt Hoosier <matt.hoosier@garmin.com> | 2021-09-29 09:41:34 -0500 |
|---|---|---|
| committer | Matt Hoosier <matt.hoosier@garmin.com> | 2021-09-29 09:43:21 -0500 |
| commit | c6c1bbe4abf9e5ce159442be22c1278d39844c08 (patch) | |
| tree | cdbedda674313ad412425a7e10b593b219c6324b /protocol | |
| parent | shm: Relax shm_pool_create_buffer() validity check (diff) | |
| download | wayland-c6c1bbe4abf9e5ce159442be22c1278d39844c08.tar wayland-c6c1bbe4abf9e5ce159442be22c1278d39844c08.tar.gz wayland-c6c1bbe4abf9e5ce159442be22c1278d39844c08.tar.bz2 wayland-c6c1bbe4abf9e5ce159442be22c1278d39844c08.tar.lz wayland-c6c1bbe4abf9e5ce159442be22c1278d39844c08.tar.xz wayland-c6c1bbe4abf9e5ce159442be22c1278d39844c08.tar.zst wayland-c6c1bbe4abf9e5ce159442be22c1278d39844c08.zip | |
protocol: mention that buffers with alpha are assumed premultiplied
This turns out to be the default assumption by compositors, OpenGL, and the DRM
framework. Let's say it explicitly to avoid misinterpretation.
See https://lists.freedesktop.org/archives/wayland-devel/2021-September/041990.html.
Signed-off-by: Matt Hoosier <matt.hoosier@garmin.com>
Diffstat (limited to 'protocol')
| -rw-r--r-- | protocol/wayland.xml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 8c31cdc..029db19 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -436,6 +436,10 @@ a height and can be attached to a wl_surface, but the mechanism by which a client provides and updates the contents is defined by the buffer factory interface. + + If the buffer uses a format that has an alpha channel, the alpha channel + is assumed to be premultiplied in the color channels unless otherwise + specified. </description> <request name="destroy" type="destructor"> |
