diff options
author | Dave Airlie <[email protected]> | 2017-11-16 11:52:39 +1000 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2017-12-04 10:04:19 -0800 |
commit | 6dc3a5e8f0c07d1f1ed6ff3fb71d8f2f6eb32d7c (patch) | |
tree | 4b6306bd0d42ce4309b6c8fd098e5c8b96a98126 /src/vulkan/wsi/wsi_common.h | |
parent | 42dd06d957036ae68d6e670af8b156f15ac750ea (diff) |
radv/wsi: Move the guts of QueuePresent to wsi common
v2 (Jason Ekstrand):
- Better comit message
- Rebase
- Re-indent to follow wsi_common style
- Drop the unneeded _swapchain from the newly added helper
- Make the clone more true to the original (as per the rebase)
Reviewed-by: Dave Airlie <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/vulkan/wsi/wsi_common.h')
-rw-r--r-- | src/vulkan/wsi/wsi_common.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common.h b/src/vulkan/wsi/wsi_common.h index 229d3983af5..b47da43e085 100644 --- a/src/vulkan/wsi/wsi_common.h +++ b/src/vulkan/wsi/wsi_common.h @@ -128,9 +128,11 @@ struct wsi_device { WSI_CB(CmdCopyImageToBuffer); WSI_CB(CreateBuffer); WSI_CB(CreateCommandPool); + WSI_CB(CreateFence); WSI_CB(CreateImage); WSI_CB(DestroyBuffer); WSI_CB(DestroyCommandPool); + WSI_CB(DestroyFence); WSI_CB(DestroyImage); WSI_CB(EndCommandBuffer); WSI_CB(FreeMemory); @@ -139,7 +141,9 @@ struct wsi_device { WSI_CB(GetImageMemoryRequirements); WSI_CB(GetImageSubresourceLayout); WSI_CB(GetMemoryFdKHR); + WSI_CB(ResetFences); WSI_CB(QueueSubmit); + WSI_CB(WaitForFences); #undef WSI_CB struct wsi_interface * wsi[VK_ICD_WSI_PLATFORM_MAX]; @@ -212,5 +216,11 @@ VkResult wsi_wl_init_wsi(struct wsi_device *wsi_device, void wsi_wl_finish_wsi(struct wsi_device *wsi_device, const VkAllocationCallbacks *alloc); +VkResult +wsi_common_queue_present(const struct wsi_device *wsi, + VkDevice device_h, + VkQueue queue_h, + int queue_family_index, + const VkPresentInfoKHR *pPresentInfo); #endif |