mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 04:20:08 +01:00
anv: correctly reset generation address on command buffer reset
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20497>
This commit is contained in:
parent
4246a519f3
commit
c1c680c08b
1 changed files with 4 additions and 0 deletions
|
|
@ -132,6 +132,7 @@ anv_create_cmd_buffer(struct vk_command_pool *pool,
|
|||
|
||||
cmd_buffer->self_mod_locations = NULL;
|
||||
|
||||
cmd_buffer->generation_jump_addr = ANV_NULL_ADDRESS;
|
||||
cmd_buffer->generation_return_addr = ANV_NULL_ADDRESS;
|
||||
|
||||
anv_cmd_state_init(cmd_buffer);
|
||||
|
|
@ -198,6 +199,9 @@ anv_cmd_buffer_reset(struct vk_command_buffer *vk_cmd_buffer,
|
|||
anv_cmd_buffer_reset_batch_bo_chain(cmd_buffer);
|
||||
anv_cmd_state_reset(cmd_buffer);
|
||||
|
||||
cmd_buffer->generation_jump_addr = ANV_NULL_ADDRESS;
|
||||
cmd_buffer->generation_return_addr = ANV_NULL_ADDRESS;
|
||||
|
||||
anv_state_stream_finish(&cmd_buffer->surface_state_stream);
|
||||
anv_state_stream_init(&cmd_buffer->surface_state_stream,
|
||||
&cmd_buffer->device->internal_surface_state_pool, 4096);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue