vulkan/wsi: Pass wsi_image_create_info into anv_GetPhysicalDeviceImageFormatProperties2

Signed-off-by: Oleksii Bozhenko <oleksii.bozhenko@globallogic.com>

Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18347>
This commit is contained in:
Oleksii Bozhenko 2022-09-08 22:44:40 +03:00 committed by Marge Bot
parent 54876512a1
commit 949edb7ffa

View file

@ -392,6 +392,12 @@ wsi_configure_native_image(const struct wsi_swapchain *chain,
__vk_append_struct(&format_info, &format_list);
}
struct wsi_image_create_info wsi_info = (struct wsi_image_create_info) {
.sType = VK_STRUCTURE_TYPE_WSI_IMAGE_CREATE_INFO_MESA,
.pNext = NULL,
};
__vk_append_struct(&format_info, &wsi_info);
VkImageFormatProperties2 format_props = {
.sType = VK_STRUCTURE_TYPE_IMAGE_FORMAT_PROPERTIES_2,
.pNext = NULL,