[Bf-blender-cvs] [041900ae95e] temp-ghost-vulkan: GHOST: Command pool should be able to reset.

Jeroen Bakker noreply at git.blender.org
Fri Nov 18 11:45:34 CET 2022


Commit: 041900ae95e1e1e8d5901fc9e1557e24d286165a
Author: Jeroen Bakker
Date:   Fri Nov 18 11:45:15 2022 +0100
Branches: temp-ghost-vulkan
https://developer.blender.org/rB041900ae95e1e1e8d5901fc9e1557e24d286165a

GHOST: Command pool should be able to reset.

===================================================================

M	intern/ghost/intern/GHOST_ContextVK.cpp

===================================================================

diff --git a/intern/ghost/intern/GHOST_ContextVK.cpp b/intern/ghost/intern/GHOST_ContextVK.cpp
index df860d4b96d..e446d9057a7 100644
--- a/intern/ghost/intern/GHOST_ContextVK.cpp
+++ b/intern/ghost/intern/GHOST_ContextVK.cpp
@@ -624,7 +624,7 @@ GHOST_TSuccess GHOST_ContextVK::createCommandBuffers()
 
   VkCommandPoolCreateInfo poolInfo = {};
   poolInfo.sType = VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO;
-  poolInfo.flags = 0;
+  poolInfo.flags = VK_COMMAND_POOL_CREATE_RESET_COMMAND_BUFFER_BIT;
   poolInfo.queueFamilyIndex = m_queue_family_graphic;
 
   VK_CHECK(vkCreateCommandPool(m_device, &poolInfo, NULL, &m_command_pool));



More information about the Bf-blender-cvs mailing list