From: Jason Ekstrand Date: Fri, 16 Oct 2015 01:28:00 +0000 (-0700) Subject: anv/cmd_buffer: Reset the command buffer in BeginCommandBuffer X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2552df41a1678785fb52529b80623b3b07bfa1c4;p=mesa.git anv/cmd_buffer: Reset the command buffer in BeginCommandBuffer --- 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) {