wlroots-hyprland/render
John Lindgren b1b34cd665 vulkan: perform sRGB-to-linear conversion correctly for premultiplied values
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.
2024-04-11 09:24:03 +00:00
..
allocator Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
gles2 gles2: Avoid crash when glGetInteger64vEXT is missing 2024-03-12 19:06:21 +01:00
pixman render/pixman: add wlr_pixman_renderer_get_buffer_image() 2023-12-11 19:47:55 +01:00
vulkan vulkan: perform sRGB-to-linear conversion correctly for premultiplied values 2024-04-11 09:24:03 +00:00
dmabuf.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
dmabuf_fallback.c render/dmabuf: add dmabuf_export_sync_file() 2022-12-06 14:54:09 +00:00
dmabuf_linux.c render/dmabuf: add dmabuf_export_sync_file() 2022-12-06 14:54:09 +00:00
drm_format_set.c render/drm_format_set: Clean up on union failure 2024-02-22 23:03:50 +01:00
egl.c render/egl: drop wlr_egl_is_current() 2024-02-23 18:52:48 +01:00
meson.build Add a new renderer API 2023-04-25 17:25:10 +02:00
pass.c render: drop legacy render pass 2023-11-22 00:55:56 +01:00
pixel_format.c render/pixel-format: Move has_alpha into it's own array 2024-01-31 13:47:17 -05:00
swapchain.c swapchain: Add wlr_swapchain_has_buffer 2023-12-03 05:29:05 +00:00
wlr_renderer.c Define _POSIX_C_SOURCE globally 2024-02-15 15:41:12 +01:00
wlr_texture.c wlr_texture: Introduce wlr_texture_preferred_read_format 2023-11-30 19:56:54 -05:00