render/vulkan: use VK_EXT_external_memory_host for uploads

This allows the Vulkan driver to directly access client buffers.

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3264
This commit is contained in:
Simon Ser 2023-08-23 20:22:40 +02:00
parent 4565b07484
commit edc2f7222a
3 changed files with 172 additions and 30 deletions

View file

@ -53,6 +53,7 @@ struct wlr_vk_device {
PFN_vkGetSemaphoreFdKHR vkGetSemaphoreFdKHR;
PFN_vkImportSemaphoreFdKHR vkImportSemaphoreFdKHR;
PFN_vkQueueSubmit2KHR vkQueueSubmit2KHR;
PFN_vkGetMemoryHostPointerPropertiesEXT vkGetMemoryHostPointerPropertiesEXT;
} api;
uint32_t format_prop_count;