mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-14 22:29:15 +01:00
[dxvk] Rename unspecific "next" member in DxvkResourceAllocation
This commit is contained in:
parent
3befea6516
commit
809257051b
@ -213,8 +213,8 @@ namespace dxvk {
|
|||||||
if (!allocation)
|
if (!allocation)
|
||||||
return nullptr;
|
return nullptr;
|
||||||
|
|
||||||
m_pools[poolIndex] = allocation->m_next;
|
m_pools[poolIndex] = allocation->m_nextCached;
|
||||||
allocation->m_next = nullptr;
|
allocation->m_nextCached = nullptr;
|
||||||
return allocation;
|
return allocation;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -321,7 +321,7 @@ namespace dxvk {
|
|||||||
{ std::unique_lock freeLock(m_freeMutex);
|
{ std::unique_lock freeLock(m_freeMutex);
|
||||||
auto& list = m_freeLists[poolIndex];
|
auto& list = m_freeLists[poolIndex];
|
||||||
|
|
||||||
allocation->m_next = list.head;
|
allocation->m_nextCached = list.head;
|
||||||
list.head = allocation;
|
list.head = allocation;
|
||||||
|
|
||||||
if (++list.size < list.capacity)
|
if (++list.size < list.capacity)
|
||||||
@ -1226,7 +1226,7 @@ namespace dxvk {
|
|||||||
updateMemoryHeapStats(allocation->m_type->properties.heapIndex);
|
updateMemoryHeapStats(allocation->m_type->properties.heapIndex);
|
||||||
}
|
}
|
||||||
|
|
||||||
m_allocationPool.free(std::exchange(allocation, allocation->m_next));
|
m_allocationPool.free(std::exchange(allocation, allocation->m_nextCached));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1424,7 +1424,7 @@ namespace dxvk {
|
|||||||
allocation->m_flags.set(DxvkAllocationFlag::Cacheable);
|
allocation->m_flags.set(DxvkAllocationFlag::Cacheable);
|
||||||
|
|
||||||
if (tail) {
|
if (tail) {
|
||||||
tail->m_next = allocation;
|
tail->m_nextCached = allocation;
|
||||||
tail = allocation;
|
tail = allocation;
|
||||||
} else {
|
} else {
|
||||||
head = allocation;
|
head = allocation;
|
||||||
@ -1435,7 +1435,7 @@ namespace dxvk {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (tail) {
|
if (tail) {
|
||||||
tail->m_next = cache->assignCache(allocationSize, head);
|
tail->m_nextCached = cache->assignCache(allocationSize, head);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -608,7 +608,7 @@ namespace dxvk {
|
|||||||
DxvkMemoryAllocator* m_allocator = nullptr;
|
DxvkMemoryAllocator* m_allocator = nullptr;
|
||||||
DxvkMemoryType* m_type = nullptr;
|
DxvkMemoryType* m_type = nullptr;
|
||||||
|
|
||||||
DxvkResourceAllocation* m_next = nullptr;
|
DxvkResourceAllocation* m_nextCached = nullptr;
|
||||||
|
|
||||||
void destroyBufferViews();
|
void destroyBufferViews();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user