aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorManuel Stoeckl <code@mstoeckl.com>2023-10-21 21:29:46 -0400
committerSimon Ser <contact@emersion.fr>2023-12-04 15:13:31 +0000
commitfd4548bb93af7e26f52a9ca266da3af78b17bf93 (patch)
tree95ec4927b89c938a45038f9440c3249db094aa3b /include
parentacc70ee3a5fd4993491b366841798fffb2fcb50f (diff)
render/vulkan: detect which _UNORM formats support _SRGB views
Diffstat (limited to 'include')
-rw-r--r--include/render/vulkan.h2
1 files changed, 2 insertions, 0 deletions
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 {