render/vulkan: detect which _UNORM formats support _SRGB views

This commit is contained in:
Manuel Stoeckl 2023-10-21 21:29:46 -04:00 committed by Simon Ser
parent acc70ee3a5
commit fd4548bb93
3 changed files with 67 additions and 9 deletions

View file

@ -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 {