mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 07:20:16 +01:00
radv: reset object base on recycled command buffers
The loader_set_dispatch overwrites the magic with the dispatch pointer, however when cmd buffers get recycled, and the loader is in debug mode, it asserts that the magic isn't set anymore. When recycling command buffers, reset the base object. Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9145>
This commit is contained in:
parent
5a340c0929
commit
bd98fc39ae
1 changed files with 1 additions and 0 deletions
|
|
@ -3872,6 +3872,7 @@ VkResult radv_AllocateCommandBuffers(
|
|||
|
||||
result = radv_reset_cmd_buffer(cmd_buffer);
|
||||
cmd_buffer->level = pAllocateInfo->level;
|
||||
vk_object_base_reset(&cmd_buffer->base);
|
||||
|
||||
pCommandBuffers[i] = radv_cmd_buffer_to_handle(cmd_buffer);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue