From 949edb7ffac54f5d68ce181f9c32ff150964addf Mon Sep 17 00:00:00 2001 From: Oleksii Bozhenko Date: Thu, 8 Sep 2022 22:44:40 +0300 Subject: [PATCH] vulkan/wsi: Pass wsi_image_create_info into anv_GetPhysicalDeviceImageFormatProperties2 Signed-off-by: Oleksii Bozhenko Reviewed-by: Jason Ekstrand Part-of: --- src/vulkan/wsi/wsi_common_drm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/vulkan/wsi/wsi_common_drm.c b/src/vulkan/wsi/wsi_common_drm.c index 6287150..ffbb335 100644 --- a/src/vulkan/wsi/wsi_common_drm.c +++ b/src/vulkan/wsi/wsi_common_drm.c @@ -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, -- 2.7.4