diff options
author | Dave Airlie <[email protected]> | 2017-02-21 11:04:44 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-02-23 15:30:32 +1000 |
commit | c2ed2685fd12c03b9e87b3d344f112127e303024 (patch) | |
tree | 01b75fbfff6929bdd81cfbfe272e9bc64b404b8d /src/vulkan/wsi/wsi_common.h | |
parent | 4711e5433662ceb80ba62ae949934c6019dc1b17 (diff) |
vulkan/wsi: move image count to shared structure.
For prime support I need to access this, so move it in advance.
[airlied: fix int->uint32_t]
Reviewed-by: Jason Ekstrand <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common.h')
-rw-r--r-- | src/vulkan/wsi/wsi_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h index ae9e5876112..7caabf50f4a 100644 --- a/src/vulkan/wsi/wsi_common.h +++ b/src/vulkan/wsi/wsi_common.h @@ -54,6 +54,7 @@ struct wsi_swapchain { const struct wsi_image_fns *image_fns; VkFence fences[3]; VkPresentModeKHR present_mode; + uint32_t image_count; VkResult (*destroy)(struct wsi_swapchain *swapchain, const VkAllocationCallbacks *pAllocator); |