File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -13252,6 +13252,8 @@ VkResult VmaDefragmentationContext_T::DefragmentPassEnd(VmaDefragmentationPassMo
13252
13252
if (state.operation != StateExtensive::Operation::Cleanup)
13253
13253
{
13254
13254
VmaBlockVector* vector = m_pBlockVectors[block.data];
13255
+ VmaMutexLockWrite lock(vector->GetMutex(), vector->GetAllocator()->m_UseMutex);
13256
+
13255
13257
for (size_t i = 0, count = vector->GetBlockCount() - m_ImmovableBlockCount; i < count; ++i)
13256
13258
{
13257
13259
if (vector->GetBlock(i) == block.block)
@@ -13281,6 +13283,8 @@ VkResult VmaDefragmentationContext_T::DefragmentPassEnd(VmaDefragmentationPassMo
13281
13283
for (const FragmentedBlock& block : immovableBlocks)
13282
13284
{
13283
13285
VmaBlockVector* vector = m_pBlockVectors[block.data];
13286
+ VmaMutexLockWrite lock(vector->GetMutex(), vector->GetAllocator()->m_UseMutex);
13287
+
13284
13288
for (size_t i = m_ImmovableBlockCount; i < vector->GetBlockCount(); ++i)
13285
13289
{
13286
13290
if (vector->GetBlock(i) == block.block)
You can’t perform that action at this time.
0 commit comments