aboutsummaryrefslogtreecommitdiffstats
path: root/protocol
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-10-31 12:10:08 +0100
committerSimon Ser <contact@emersion.fr>2021-11-04 08:53:47 +0000
commitebfc70cdf7c63082e2c9cccf47f0616a2e8969b0 (patch)
tree0e7194c394fc12970091432ba1a09d5deebcc86e /protocol
parentdebug: Fix printing of new ids (diff)
downloadwayland-ebfc70cdf7c63082e2c9cccf47f0616a2e8969b0.tar
wayland-ebfc70cdf7c63082e2c9cccf47f0616a2e8969b0.tar.gz
wayland-ebfc70cdf7c63082e2c9cccf47f0616a2e8969b0.tar.bz2
wayland-ebfc70cdf7c63082e2c9cccf47f0616a2e8969b0.tar.lz
wayland-ebfc70cdf7c63082e2c9cccf47f0616a2e8969b0.tar.xz
wayland-ebfc70cdf7c63082e2c9cccf47f0616a2e8969b0.tar.zst
wayland-ebfc70cdf7c63082e2c9cccf47f0616a2e8969b0.zip
protocol: wl_shm uses pre-multiplied alpha
Add a note about pre-multiplied alpha for all wl_shm formats. Include an escape hatch in the spec to allow other protocol extensions to override this. Signed-off-by: Simon Ser <contact@emersion.fr> Closes: https://gitlab.freedesktop.org/wayland/wayland/-/issues/61
Diffstat (limited to 'protocol')
-rw-r--r--protocol/wayland.xml3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index e3dab2e..4e59c3a 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -296,6 +296,9 @@
The drm format codes match the macros defined in drm_fourcc.h, except
argb8888 and xrgb8888. The formats actually supported by the compositor
will be reported by the format event.
+
+ For all wl_shm formats and unless specified in another protocol
+ extension, pre-multiplied alpha is used for pixel values.
</description>