render/vulkan: de-duplicate VkImageUsageFlags

The flags passed to vkCreateImage() must match the flags used when
querying formats. Make this clearer by using the same variable.
This commit is contained in:
Simon Ser 2023-07-19 09:19:29 +02:00
parent b18a849fc3
commit 65bbbbbf0c
3 changed files with 10 additions and 10 deletions

View file

@ -90,6 +90,8 @@ struct wlr_vk_format {
bool is_ycbcr;
};
extern const VkImageUsageFlags vulkan_render_usage, vulkan_shm_tex_usage, vulkan_dma_tex_usage;
// Returns all known format mappings.
// Might not be supported for gpu/usecase.
const struct wlr_vk_format *vulkan_get_format_list(size_t *len);