Skip to content

vulkan: perform sRGB-to-linear conversion correctly for premultiplied values

John Lindgren requested to merge jlindgren90/wlroots:vulkan-srgb-premult into master

Pre-multipled sRGB values need to be un-multiplied before conversion to linear and then re-multiplied after. Compare shaders/texture.frag.

This fixes an issue in labwc where titlebar corners (rendered as ARGB textures) did not match the rest of the titlebar (rendered as a solid wlr_scene_rect).

Note: 0.17 has other instances in render/vulkan/renderer.c that need the same fix.

Merge request reports