diff options
author | Jason Ekstrand <[email protected]> | 2016-03-04 12:42:03 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-03-04 17:54:29 -0800 |
commit | 653261285e1758f6fde0fb49b3fe30d6d2631077 (patch) | |
tree | 491fada131de40073e8807b4e88fd279875acebe /src | |
parent | f700d16a892cbedc58a8c7850f1e75d1c127ce26 (diff) |
anv/cmd_buffer: Reset the state streams when resetting the command buffer
Diffstat (limited to 'src')
-rw-r--r-- | src/intel/vulkan/anv_cmd_buffer.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_cmd_buffer.c b/src/intel/vulkan/anv_cmd_buffer.c index aa54bdecb0a..6ff5f35bc6a 100644 --- a/src/intel/vulkan/anv_cmd_buffer.c +++ b/src/intel/vulkan/anv_cmd_buffer.c @@ -333,6 +333,14 @@ VkResult anv_ResetCommandBuffer( anv_cmd_buffer_reset_batch_bo_chain(cmd_buffer); anv_cmd_state_reset(cmd_buffer); + anv_state_stream_finish(&cmd_buffer->surface_state_stream); + anv_state_stream_init(&cmd_buffer->surface_state_stream, + &cmd_buffer->device->surface_state_block_pool); + + anv_state_stream_finish(&cmd_buffer->dynamic_state_stream); + anv_state_stream_init(&cmd_buffer->dynamic_state_stream, + &cmd_buffer->device->dynamic_state_block_pool); + return VK_SUCCESS; } |