Skip to content

Commit 812a8c4

Browse files
fix bug introduced by refactor of ICommandPoolCache
1 parent d3936f5 commit 812a8c4

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

include/nbl/video/utilities/IUtilities.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ class NBL_API2 IUtilities : public core::IReferenceCounted
105105
m_device->mapMemory(memoryRange, access);
106106

107107
m_defaultDownloadBuffer = core::make_smart_refctd_ptr<StreamingTransientDataBufferMT<>>(asset::SBufferRange<video::IGPUBuffer>{0ull,downstreamSize,std::move(buffer)},maxStreamingBufferAllocationAlignment,minStreamingBufferAllocationSize);
108+
m_defaultDownloadBuffer->getBuffer()->setObjectDebugName(("Default Download Buffer of Utilities "+std::to_string(ptrdiff_t(this))).c_str());
108109
}
109110
{
110111
IGPUBuffer::SCreationParams streamingBufferCreationParams = {};
@@ -132,6 +133,7 @@ class NBL_API2 IUtilities : public core::IReferenceCounted
132133
m_device->mapMemory(memoryRange, access);
133134

134135
m_defaultUploadBuffer = core::make_smart_refctd_ptr<StreamingTransientDataBufferMT<>>(asset::SBufferRange<video::IGPUBuffer>{0ull,upstreamSize,std::move(buffer)},maxStreamingBufferAllocationAlignment,minStreamingBufferAllocationSize);
136+
m_defaultUploadBuffer->getBuffer()->setObjectDebugName(("Default Upload Buffer of Utilities "+std::to_string(ptrdiff_t(this))).c_str());
135137
}
136138
m_propertyPoolHandler = core::make_smart_refctd_ptr<CPropertyPoolHandler>(core::smart_refctd_ptr(m_device));
137139
// smaller workgroups fill occupancy gaps better, especially on new Nvidia GPUs, but we don't want too small workgroups on mobile

src/nbl/video/utilities/ICommandPoolCache.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ ICommandPoolCache::ICommandPoolCache(ILogicalDevice* device, const uint32_t queu
1717
void ICommandPoolCache::releaseSet(const uint32_t poolIx)
1818
{
1919
m_cache[poolIx]->reset();
20+
m_cmdPoolAllocator.free_addr(poolIx,1);
2021
}
2122

2223
void ICommandPoolCache::DeferredCommandPoolResetter::operator()()

0 commit comments

Comments
 (0)