mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
render/vulkan: detect which _UNORM formats support _SRGB views
This commit is contained in:
parent
acc70ee3a5
commit
fd4548bb93
3 changed files with 67 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue