wlroots-hyprland/render/vulkan
Manuel Stoeckl dbe7fb7027 render/vulkan: undo alpha premult for 8-bpc ARGB/ABGR
When a texel from the Vulkan format VK_FORMAT_B8G8R8A8_SRGB is read,
the sRGB to linear conversion is applied independently to the R, G,
and B channels; the A channel has no influence on this. However,
DRM_FORMAT_ARGB8888 buffers are, per Wayland protocol, not encoded
in this fashion; one must first unpremultiply the color channels
before doing sRGB to linear conversion. This commit switches to
handling ARGB8888 and ABGR8888 formats using the general fragment
shader conversion from electrical to optical values.
2023-11-21 11:08:55 +00:00
..
shaders render/vulkan: undo alpha premult before sRGB encoding/decoding 2023-10-17 17:28:56 +02:00
meson.build render/vulkan: use renamed glslang binary by default 2023-07-27 16:06:49 +08:00
pass.c render/vulkan: constrain blend to output subpass to redrawn region 2023-10-05 11:45:32 +00:00
pixel_format.c render/vulkan: undo alpha premult for 8-bpc ARGB/ABGR 2023-11-21 11:08:55 +00:00
renderer.c render/vulkan: remove unused queue_props in renderer 2023-10-26 15:12:58 +00:00
texture.c treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical 2023-10-03 01:51:07 -04:00
util.c render/vulkan: drop unused vulkan_has_extension() 2023-05-26 12:25:53 +00:00
vulkan.c render/vulkan: use VK_KHR_global_priority 2023-10-26 16:17:57 +00:00