mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 09:20:13 +01:00
anv/cmd_buffer: Reset the state streams when resetting the command buffer
This commit is contained in:
parent
f700d16a89
commit
653261285e
1 changed files with 8 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue