projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f700d16
)
anv/cmd_buffer: Reset the state streams when resetting the command buffer
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Fri, 4 Mar 2016 20:42:03 +0000
(12:42 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 5 Mar 2016 01:54:29 +0000
(17:54 -0800)
src/intel/vulkan/anv_cmd_buffer.c
patch
|
blob
|
history
diff --git
a/src/intel/vulkan/anv_cmd_buffer.c
b/src/intel/vulkan/anv_cmd_buffer.c
index aa54bdecb0ac644b742aef93924400090d853c0b..6ff5f35bc6ac51b3279b02cc0be4496757621326 100644
(file)
--- 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;
}