OSDN Git Service

Basic CommandBuffer::waitEvents implementation
authorAlexis Hetu <sugoi@google.com>
Fri, 15 Mar 2019 18:45:45 +0000 (14:45 -0400)
committerAlexis Hétu <sugoi@google.com>
Thu, 21 Mar 2019 14:27:36 +0000 (14:27 +0000)
commit9041bb7c0011ca6a20a07564acb5ba5a3c9cfba6
tree3ddaa2ac208f23c22b7a64ff142f256044175a71
parent290908500aed53e8740f2aab60b8449605661cc2
Basic CommandBuffer::waitEvents implementation

Implemented waitEvents as a sync operation, like pipeline barriers,
since, as the Vulkan spec states:
"vkCmdWaitEvents is used with vkCmdSetEvent to define a memory
 dependency between two sets of action commands, roughly in the
 same way as pipeline barriers, but split into two commands such
 that work between the two may execute unhindered."

Only the pEvents parameter is supported and currently doesn't support
pMemoryBarrier, pBufferMemoryBarriers or pImageMemoryBarriers.

Bug b/118620868

Change-Id: I30ccc65c65dfc7d9a99e25ebb535061c618375cb
Tests: dEQP-VK.api.command_buffers.record_simul_use_primary
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27348
Tested-by: Alexis Hétu <sugoi@google.com>
Presubmit-Ready: Alexis Hétu <sugoi@google.com>
Reviewed-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
src/Vulkan/VkCommandBuffer.cpp
src/Vulkan/VkEvent.hpp