From f5433e4d6ce247b86daed741c07aa99f2bd02c0d Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 9 Feb 2018 15:43:27 -0800 Subject: vulkan/wsi: Add modifiers support to wsi_create_native_image This involves extending our fake extension a bit to allow for additional querying and passing of modifier information. The added bits are intended to look a lot like the draft of VK_EXT_image_drm_format_modifier. Once the extension gets finalized, we'll simply transition all of the structs used in wsi_common to the real extension structs. Reviewed-by: Daniel Stone --- src/vulkan/wsi/wsi_common_wayland.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/vulkan/wsi/wsi_common_wayland.c') diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index 8290170c9ec..1162b92c35f 100644 --- a/src/vulkan/wsi/wsi_common_wayland.c +++ b/src/vulkan/wsi/wsi_common_wayland.c @@ -708,7 +708,8 @@ wsi_wl_image_init(struct wsi_wl_swapchain *chain, { VkResult result; - result = wsi_create_native_image(&chain->base, pCreateInfo, &image->base); + result = wsi_create_native_image(&chain->base, pCreateInfo, + 0, NULL, NULL, &image->base); if (result != VK_SUCCESS) return result; -- cgit v1.2.3