Gamma correct rendering with Wayland and Weston

Bill Spitzak spitzak at
Sun Sep 30 08:40:45 PDT 2012

On 09/29/2012 01:28 AM, John Kåre Alsaker wrote:

> You seemed to have gotten the impression that I suggested we blend
> each surface in either sRGB or linear depending on it's encoding.
> That's not what I was suggesting. The compositor won't pick it's
> blending gamma space per surface. It's either completely linear or
> sRGB. So all clients with the same alpha values (and colors) will look
> equal independent of their gamma encoding. We should probably expose
> the blending gamma space, so clients have a chance to adjust their
> translucent parts, even if most of them will ignore it.

Actually what you say is EXACTLY what I was suggesting.

If all the clients have identical-looking shadows, it is because they 
all wrote the same numerical values to their images in the shadow area. 
Even if they use different compositing rules for the opaque regions.

More information about the wayland-devel mailing list