mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-02-20 19:54:19 +01:00
[dxvk] Minor memory management tweaks
This commit is contained in:
parent
32078033c6
commit
30eb43a284
@ -21,8 +21,7 @@ namespace dxvk {
|
||||
|
||||
|
||||
VkDescriptorSet DxvkDescriptorAlloc::alloc(VkDescriptorSetLayout layout) {
|
||||
// VkDescriptorSet set = allocFrom(m_pools[m_poolId], layout);
|
||||
VkDescriptorSet set = VK_NULL_HANDLE;
|
||||
VkDescriptorSet set = allocFrom(m_pools[m_poolId], layout);
|
||||
|
||||
if (set == VK_NULL_HANDLE) {
|
||||
if (++m_poolId >= m_pools.size())
|
||||
|
@ -33,7 +33,7 @@ namespace dxvk {
|
||||
class DxvkDevice : public RcObject {
|
||||
friend class DxvkSubmissionQueue;
|
||||
|
||||
constexpr static VkDeviceSize DefaultStagingBufferSize = 16 * 1024 * 1024;
|
||||
constexpr static VkDeviceSize DefaultStagingBufferSize = 4 * 1024 * 1024;
|
||||
public:
|
||||
|
||||
DxvkDevice(
|
||||
|
@ -59,14 +59,12 @@ namespace dxvk {
|
||||
m_memory(memory),
|
||||
m_mapPtr(mapPtr),
|
||||
m_size (size) {
|
||||
TRACE(this, heap, size);
|
||||
// Mark the entire chunk as free
|
||||
m_freeList.push_back(FreeSlice { 0, size });
|
||||
}
|
||||
|
||||
|
||||
DxvkMemoryChunk::~DxvkMemoryChunk() {
|
||||
TRACE(this);
|
||||
m_heap->freeDeviceMemory(m_memory);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user