Skip to content

backends/drm: do blending in gamma 2.2 space with color management too

Xaver Hugl requested to merge work/zamundaaa/gamma22--blending-2 into master

This matches what we do without color management, and is more what users and app developers expect. Going with linear blending before was mostly from it being more "correct" / how physical blending of light works, but that doesn't really matter when existing software expects it to behave differently.

Storing the blending result in gamma 2.2 encoding also allows us to drop the shadow buffer(s) from 16bpc to 10bpc, which needs less power and doesn't have special driver bugs. That as well as removing the shadow buffer completely in HDR mode on not super old hardware (by using KMS to do the gamma 2.2 -> PQ conversion) will be done in future MRs though.

BUG: 476868 CCBUG: 479755

With the same blur settings and the Konsole background configured to be 35% transparent in both cases, the difference looks like this:

Before After
Screenshot_20240704_073144 Screenshot_20240704_073001

Merge request reports