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

@ -455,8 +455,8 @@ struct wlr_vk_device *vulkan_device_create(struct wlr_vk_instance *ini,
dev->drm_fd = -1;
// For dmabuf import we require at least the external_memory_fd,
// external_memory_dma_buf, queue_family_foreign and
// image_drm_format_modifier extensions.
// external_memory_dma_buf, queue_family_foreign,
// image_drm_format_modifier, and image_format_list extensions.
// The size is set to a large number to allow for other conditional
// extensions before the device is created
const char *extensions[32] = {0};