diff options
author | Jason Ekstrand <[email protected]> | 2018-09-20 05:30:03 -0500 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-09-21 07:02:35 -0500 |
commit | ab80889e92e2a3c2884e5da925424f9f6a88979b (patch) | |
tree | 54227ff0576a7f798ba2cba36a6294022830a5de /src/vulkan/wsi/wsi_common_display.c | |
parent | 24bacaddefafd806c7456f2ab6912ae5da4c0d9e (diff) |
anv,radv: Implement vkAcquireNextImage2
This was added as part of 1.1 but it's very hard to track exactly what
extension added it. In any case, we should implement it.
Cc: [email protected]
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common_display.c')
-rw-r--r-- | src/vulkan/wsi/wsi_common_display.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c index 1e90bba460c..e99b0465ec9 100644 --- a/src/vulkan/wsi/wsi_common_display.c +++ b/src/vulkan/wsi/wsi_common_display.c @@ -1197,8 +1197,7 @@ wsi_display_wait_for_event(struct wsi_display *wsi, static VkResult wsi_display_acquire_next_image(struct wsi_swapchain *drv_chain, - uint64_t timeout, - VkSemaphore semaphore, + const VkAcquireNextImageInfoKHR *info, uint32_t *image_index) { struct wsi_display_swapchain *chain = @@ -1211,6 +1210,7 @@ wsi_display_acquire_next_image(struct wsi_swapchain *drv_chain, if (chain->status != VK_SUCCESS) return chain->status; + uint64_t timeout = info->timeout; if (timeout != 0 && timeout != UINT64_MAX) timeout = wsi_rel_to_abs_time(timeout); |