mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 11:08:03 +02:00
venus: fix cmd state leak across implicit reset
Reset cmd states during vkBeginCommandBuffer regardless of the VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT for simplicity. Cc: mesa-stable Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24103>
This commit is contained in:
parent
a9f058d614
commit
d13bf8f6b1
1 changed files with 2 additions and 2 deletions
|
|
@ -1015,8 +1015,8 @@ vn_BeginCommandBuffer(VkCommandBuffer commandBuffer,
|
|||
struct vn_instance *instance = cmd->pool->device->instance;
|
||||
size_t cmd_size;
|
||||
|
||||
vn_cs_encoder_reset(&cmd->cs);
|
||||
cmd->draw_cmd_batched = 0;
|
||||
/* reset regardless of VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT */
|
||||
vn_cmd_reset(cmd);
|
||||
|
||||
struct vn_command_buffer_begin_info local_begin_info;
|
||||
pBeginInfo =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue