render/vulkan: Prepare VK_EXT_external_memory_host

This commit is contained in:
Kenny Levinsen 2024-06-16 12:17:41 +02:00
parent 6d197eef94
commit f6993ab0da
2 changed files with 22 additions and 0 deletions

View file

@ -54,6 +54,7 @@ struct wlr_vk_device {
PFN_vkGetSemaphoreFdKHR vkGetSemaphoreFdKHR;
PFN_vkImportSemaphoreFdKHR vkImportSemaphoreFdKHR;
PFN_vkQueueSubmit2KHR vkQueueSubmit2KHR;
PFN_vkGetMemoryHostPointerPropertiesEXT vkGetMemoryHostPointerPropertiesEXT;
} api;
uint32_t format_prop_count;
@ -61,6 +62,7 @@ struct wlr_vk_device {
struct wlr_drm_format_set dmabuf_render_formats;
struct wlr_drm_format_set dmabuf_texture_formats;
struct wlr_drm_format_set shm_texture_formats;
size_t minImportedHostPointerAlignment;
};
// Tries to find the VkPhysicalDevice for the given drm fd.