87109c3e1b
Add helper functions vk_memory_to_image_copy_layout() and vk_image_to_memory_copy_layout(), which will be useful in VK_EXT_host_image_copy implementations. vk_memory_to_image_copy_layout() is similar to vk_image_buffer_copy_layout(), except the second parameter is VkMemoryToImageCopyEXT instead of VkBufferImageCopy2. vk_image_to_memory_copy_layout() is similar to vk_image_buffer_copy_layout(), except the second parameter is VkImageToMemoryCopyEXT instead of VkBufferImageCopy2. Signed-off-by: Rebecca Mckeever <rebecca.mckeever@collabora.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24290>