Skip to content

Commit 02754dd

Browse files
committed
Revert "Check poolRequirements.size > totalSize"
This reverts commit 48a9614.
1 parent ddd5d1c commit 02754dd

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

src/vsg/vk/MemoryBufferPools.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,7 @@ MemoryBufferPools::DeviceMemoryOffset MemoryBufferPools::reserveMemory(VkMemoryR
205205
if (deviceMemory)
206206
{
207207
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)
208+
// if (!deviceMemory->full())
214209
{
215210
//debug(" inserting DeviceMemory into memoryPool ", deviceMemory.get());
216211
memoryPools.push_back(deviceMemory);

0 commit comments

Comments
 (0)