summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_cmd_buffer.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-15 18:28:00 -0700
committerJason Ekstrand <[email protected]>2015-10-15 18:28:00 -0700
commit2552df41a1678785fb52529b80623b3b07bfa1c4 (patch)
tree249accaf84d71257d6084b8d39d2b3351566a6eb /src/vulkan/anv_cmd_buffer.c
parent298d0316427315ce78ab6aaaaec7e6dd31a31292 (diff)
anv/cmd_buffer: Reset the command buffer in BeginCommandBuffer
Diffstat (limited to 'src/vulkan/anv_cmd_buffer.c')
-rw-r--r--src/vulkan/anv_cmd_buffer.c2
1 files changed, 2 insertions, 0 deletions
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) {