From fd4548bb93af7e26f52a9ca266da3af78b17bf93 Mon Sep 17 00:00:00 2001 From: Manuel Stoeckl Date: Sat, 21 Oct 2023 21:29:46 -0400 Subject: render/vulkan: detect which _UNORM formats support _SRGB views --- include/render/vulkan.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/render/vulkan.h') diff --git a/include/render/vulkan.h b/include/render/vulkan.h index 17f1c3bb..c0ba9b20 100644 --- a/include/render/vulkan.h +++ b/include/render/vulkan.h @@ -101,6 +101,7 @@ const struct wlr_vk_format *vulkan_get_format_from_drm(uint32_t drm_format); struct wlr_vk_format_modifier_props { VkDrmFormatModifierPropertiesEXT props; VkExtent2D max_extent; + bool has_mutable_srgb; }; struct wlr_vk_format_props { @@ -109,6 +110,7 @@ struct wlr_vk_format_props { struct { VkExtent2D max_extent; VkFormatFeatureFlags features; + bool has_mutable_srgb; } shm; struct { -- cgit v1.2.3