diff options
author | Dave Airlie <airlied@redhat.com> | 2018-03-02 07:14:08 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2018-03-02 07:14:08 +0000 |
commit | 380655d6b2f9b39b802a7c9112f24b7e1e69897c (patch) | |
tree | 3d89dccc2f4e8f41608b677ee956257907d1d0d1 | |
parent | dcb46cac66b9442088293a60ab112c553e7b588c (diff) |
try to submit - won't do much yetless-interesting
-rw-r--r-- | src/openclv/core/queue.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/openclv/core/queue.cpp b/src/openclv/core/queue.cpp index 17111e05ed2..a94dadc1a78 100644 --- a/src/openclv/core/queue.cpp +++ b/src/openclv/core/queue.cpp @@ -62,7 +62,20 @@ command_queue::flush() { vkEndCommandBuffer(cmd_buffer); - // queue and fence + // queue and fence + VkSubmitInfo submit_info; + submit_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; + submit_info.commandBufferCount = 1; + submit_info.pCommandBuffers = &cmd_buffer; + + VkFence fence; + VkFenceCreateInfo fence_create_info; + fence_create_info.sType = VK_STRUCTURE_TYPE_FENCE_CREATE_INFO; + + VkResult result = vkCreateFence(device().vkdev(), &fence_create_info, NULL, &fence); + + result = vkQueueSubmit(device().vkqueue(), 1, &submit_info, fence); + #if 0 pipe_screen *screen = device().pipe; pipe_fence_handle *fence = NULL; |