diff options
author | Jason Ekstrand <[email protected]> | 2018-02-09 15:43:27 -0800 |
---|---|---|
committer | Daniel Stone <[email protected]> | 2018-02-21 22:37:10 +0000 |
commit | f5433e4d6ce247b86daed741c07aa99f2bd02c0d (patch) | |
tree | 17fd2fc1f98c4a4b97fbe45b208ffe833e32a40c /src/vulkan/wsi/wsi_common_wayland.c | |
parent | 55b27e1e5f21d62855e955446a63afb5ef8b97a6 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common_wayland.c')
-rw-r--r-- | src/vulkan/wsi/wsi_common_wayland.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |