1 parent ddd5d1c commit 02754ddCopy full SHA for 02754dd
1 file changed
src/vsg/vk/MemoryBufferPools.cpp
@@ -205,12 +205,7 @@ MemoryBufferPools::DeviceMemoryOffset MemoryBufferPools::reserveMemory(VkMemoryR
205
if (deviceMemory)
206
{
207
reservedSlot = deviceMemory->reserve(totalSize, alignment);
208
-
209
- // Only blocks inflated beyond the request have spare capacity worth sharing. An
210
- // exact fit block is wholly consumed by its one resource, so pooling it would just
211
- // keep the memory alive after the resource is destroyed; leaving it out means the
212
- // resource's own reference returns it to the driver.
213
- if (poolRequirements.size > totalSize)
+ // if (!deviceMemory->full())
214
215
//debug(" inserting DeviceMemory into memoryPool ", deviceMemory.get());
216
memoryPools.push_back(deviceMemory);
0 commit comments