From 9948ca0ceb001fa92c3a2dbfb0fedefac9321be1 Mon Sep 17 00:00:00 2001 From: Adam Sawicki Date: Fri, 16 Nov 2018 14:46:04 +0100 Subject: [PATCH] Removed VMA_DEFRAGMENTATION_CAN_MAKE_LOST_BIT. Not going to implement it for now... --- src/VmaReplay/VmaReplay.cpp | 2 +- src/vk_mem_alloc.h | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/VmaReplay/VmaReplay.cpp b/src/VmaReplay/VmaReplay.cpp index e81aa1d..c05946b 100644 --- a/src/VmaReplay/VmaReplay.cpp +++ b/src/VmaReplay/VmaReplay.cpp @@ -1754,7 +1754,7 @@ void Player::Defragment() defragInfo.maxCpuBytesToMove = VK_WHOLE_SIZE; defragInfo.maxGpuAllocationsToMove = UINT32_MAX; defragInfo.maxGpuBytesToMove = VK_WHOLE_SIZE; - defragInfo.flags = VMA_DEFRAGMENTATION_CAN_MAKE_LOST_BIT; + defragInfo.flags = 0; defragInfo.commandBuffer = m_CommandBuffer; VmaDefragmentationContext defragCtx = VK_NULL_HANDLE; diff --git a/src/vk_mem_alloc.h b/src/vk_mem_alloc.h index a59134f..f1974a6 100644 --- a/src/vk_mem_alloc.h +++ b/src/vk_mem_alloc.h @@ -2580,11 +2580,6 @@ VK_DEFINE_HANDLE(VmaDefragmentationContext) /// Flags to be used in vmaDefragmentationBegin(). typedef enum VmaDefragmentationFlagBits { - /** Add this flag to enable allocations created with #VMA_ALLOCATION_CREATE_CAN_BECOME_LOST_BIT - flag to become lost during defragmentation process if the algorithm decides it is beneficial. - */ - VMA_DEFRAGMENTATION_CAN_MAKE_LOST_BIT = 0x00000001, - /** Add this flag to change defragmentation algorithm to fast rather than default (balanced). This algorithm will favor speed over quality of defragmentation. Defragmentation will be done as fast and move as little allocations and bytes as possible while