Skip to content

Add a few 30-bit wl_shm formats

Manuel Stoeckl requested to merge mstoeckl/kwayland-server:10-bit-shm into master

This change registers four new wl_shm formats, namely ARGB2101010, XRGB2101010, ABGR2101010, and XBGR2101010. These will be useful in the future when 10-bit output support or color management are available.

No KWin changes should be necessary for this, because the shm buffer importing logic in Kwin calls convertToFormat if there is no directly matching GL format. (See for example: src/libkwineffects/kwingltexture.cpp#L391.) I've tested this by hand with KWin and a client that submits 10-bit shm buffers.

Edited by Manuel Stoeckl

Merge request reports