diff options
author | Jason Ekstrand <[email protected]> | 2017-11-16 09:30:16 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-12-04 10:04:19 -0800 |
commit | ad4c60d6b87eb92191c638bf52ad38e7dd59f627 (patch) | |
tree | 2a0baf312d20a48f378a1066dd8664b3b9e602de /src/vulkan/wsi/wsi_common.h | |
parent | 393aa3f6c929fdbcaa599597e28a3206aa09dcc2 (diff) |
vulkan/wsi: Move prime blitting into queue_present
This lets us save a QueueSubmit and it also makes prime a lot less
X11-specific. Also, it means we can only wait on the semaphores once
instead of on every blit.
Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common.h')
-rw-r--r-- | src/vulkan/wsi/wsi_common.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h index 892e708671b..9ff28e76f33 100644 --- a/src/vulkan/wsi/wsi_common.h +++ b/src/vulkan/wsi/wsi_common.h @@ -59,6 +59,8 @@ struct wsi_swapchain { VkPresentModeKHR present_mode; uint32_t image_count; + bool use_prime_blit; + /* Command pools, one per queue family */ VkCommandPool *cmd_pools; @@ -70,9 +72,6 @@ struct wsi_swapchain { uint64_t timeout, VkSemaphore semaphore, uint32_t *image_index); VkResult (*queue_present)(struct wsi_swapchain *swap_chain, - VkQueue queue, - uint32_t waitSemaphoreCount, - const VkSemaphore *pWaitSemaphores, uint32_t image_index, const VkPresentRegionKHR *damage); }; |