mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
dbe7fb7027
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. |
||
---|---|---|
.. | ||
allocator | ||
gles2 | ||
pixman | ||
vulkan | ||
dmabuf.c | ||
dmabuf_fallback.c | ||
dmabuf_linux.c | ||
drm_format_set.c | ||
egl.c | ||
meson.build | ||
pass.c | ||
pixel_format.c | ||
swapchain.c | ||
wlr_renderer.c | ||
wlr_texture.c |