From: Karol Herbst Date: Sat, 11 Jun 2022 12:16:26 +0000 (+0200) Subject: nvk: implicitly reset the command buffer X-Git-Tag: upstream/23.3.3~4553 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f8682a1e7ca16fcc31e2fbb7fbd07b549ed555f;p=platform%2Fupstream%2Fmesa.git nvk: implicitly reset the command buffer Part-of: --- diff --git a/src/nouveau/vulkan/nvk_cmd_buffer.c b/src/nouveau/vulkan/nvk_cmd_buffer.c index faa754b..fac44df 100644 --- a/src/nouveau/vulkan/nvk_cmd_buffer.c +++ b/src/nouveau/vulkan/nvk_cmd_buffer.c @@ -207,6 +207,8 @@ nvk_BeginCommandBuffer(VkCommandBuffer commandBuffer, const VkCommandBufferBegin { VK_FROM_HANDLE(nvk_cmd_buffer, cmd, commandBuffer); + nvk_reset_cmd_buffer(cmd); + if (pBeginInfo->flags & VK_COMMAND_BUFFER_USAGE_ONE_TIME_SUBMIT_BIT) cmd->reset_on_submit = true; else