From 2552df41a1678785fb52529b80623b3b07bfa1c4 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Thu, 15 Oct 2015 18:28:00 -0700 Subject: anv/cmd_buffer: Reset the command buffer in BeginCommandBuffer --- src/vulkan/anv_cmd_buffer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vulkan/anv_cmd_buffer.c') diff --git a/src/vulkan/anv_cmd_buffer.c b/src/vulkan/anv_cmd_buffer.c index 19ad31167bf..b8783f9e212 100644 --- a/src/vulkan/anv_cmd_buffer.c +++ b/src/vulkan/anv_cmd_buffer.c @@ -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) { -- cgit v1.2.3