Merge branch 'host_buffer_mr' into 'master'

Draft: render/vulkan: Use host memory backed VkImages

See merge request wlroots/wlroots!4716
This commit is contained in:
Kenny Levinsen 2024-10-02 21:21:15 +00:00
commit f1221c5b8f
5 changed files with 170 additions and 36 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.
@ -322,6 +324,8 @@ struct wlr_vk_renderer {
VkImage dst_image;
VkDeviceMemory dst_img_memory;
} read_pixels_cache;
bool direct_shm_import;
};
// vertex shader push constant range data