mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxvk] Remove broken memory budget logic for UMA systems
All heaps on an UMA systems are by definition device-local, so this just leads to unnecessary issues.
This commit is contained in:
parent
0462454d2b
commit
0b9f785bc5
@ -187,12 +187,6 @@ namespace dxvk {
|
||||
m_memHeaps[i].properties = m_memProps.memoryHeaps[i];
|
||||
m_memHeaps[i].stats = DxvkMemoryStats { 0, 0 };
|
||||
m_memHeaps[i].budget = 0;
|
||||
|
||||
/* Target 80% of a heap on systems where we want
|
||||
* to avoid oversubscribing memory heaps */
|
||||
if ((m_memProps.memoryHeaps[i].flags & VK_MEMORY_HEAP_DEVICE_LOCAL_BIT)
|
||||
&& (m_device->isUnifiedMemoryArchitecture()))
|
||||
m_memHeaps[i].budget = (8 * m_memProps.memoryHeaps[i].size) / 10;
|
||||
}
|
||||
|
||||
for (uint32_t i = 0; i < m_memProps.memoryTypeCount; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user