diff options
author | Chad Versace <[email protected]> | 2016-01-14 13:12:35 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2016-01-14 13:14:40 -0800 |
commit | ed33ccde635eda9d6accf2ff69fcf805902ec082 (patch) | |
tree | 27cb4e453a1e47c91163bdf8cd82efa8ee045ee4 /src/isl | |
parent | ea20389320b251f6498eb9c47e525ced10aab91d (diff) |
anv: Make vkBeginCommandBuffer reset the command buffer
If its the command buffer's first call to vkBeginCommandBuffer, we must
*initialize* the command buffer's state. Otherwise, we must *reset* its
state. In both cases, let's use anv_ResetCommandBuffer.
From the Vulkan 1.0 spec:
If a command buffer is in the executable state and the command buffer
was allocated from a command pool with the
VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT flag set, then
vkBeginCommandBuffer implicitly resets the command buffer, behaving
as if vkResetCommandBuffer had been called with
VK_COMMAND_BUFFER_RESET_RELEASE_RESOURCES_BIT not set. It then puts
the command buffer in the recording state.
Diffstat (limited to 'src/isl')
0 files changed, 0 insertions, 0 deletions