anv/cmd_buffer: Reset the command buffer in BeginCommandBuffer
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Oct 2015 01:28:00 +0000 (18:28 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Oct 2015 01:28:00 +0000 (18:28 -0700)
src/vulkan/anv_cmd_buffer.c

index 19ad31167bf74d1db9ff9b21d597e8d0865e0ce6..b8783f9e212a61d289509afdfd45f20463e3e0bb 100644 (file)
@@ -258,6 +258,8 @@ VkResult anv_BeginCommandBuffer(
 {
    ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, cmdBuffer);
 
+   anv_cmd_buffer_reset_batch_bo_chain(cmd_buffer);
+
    cmd_buffer->opt_flags = pBeginInfo->flags;
 
    if (cmd_buffer->level == VK_CMD_BUFFER_LEVEL_SECONDARY) {