diff --git a/src/dxvk/dxvk_adapter.cpp b/src/dxvk/dxvk_adapter.cpp index 4fe653e0..a82c3765 100644 --- a/src/dxvk/dxvk_adapter.cpp +++ b/src/dxvk/dxvk_adapter.cpp @@ -273,10 +273,7 @@ namespace dxvk { VkDeviceMemoryOverallocationCreateInfoAMD overallocInfo; overallocInfo.sType = VK_STRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD; overallocInfo.pNext = nullptr; - overallocInfo.overallocationBehavior = VK_MEMORY_OVERALLOCATION_BEHAVIOR_DISALLOWED_AMD; - - if (m_instance->options().allowMemoryOvercommit) - overallocInfo.overallocationBehavior = VK_MEMORY_OVERALLOCATION_BEHAVIOR_ALLOWED_AMD; + overallocInfo.overallocationBehavior = VK_MEMORY_OVERALLOCATION_BEHAVIOR_ALLOWED_AMD; // Create one single queue for graphics and present float queuePriority = 1.0f; diff --git a/src/dxvk/dxvk_memory.cpp b/src/dxvk/dxvk_memory.cpp index acb80e24..87325907 100644 --- a/src/dxvk/dxvk_memory.cpp +++ b/src/dxvk/dxvk_memory.cpp @@ -156,8 +156,7 @@ namespace dxvk { : m_vkd (device->vkd()), m_device (device), m_devProps (device->adapter()->deviceProperties()), - m_memProps (device->adapter()->memoryProperties()), - m_allowOvercommit (device->config().allowMemoryOvercommit) { + m_memProps (device->adapter()->memoryProperties()) { for (uint32_t i = 0; i < m_memProps.memoryHeapCount; i++) { VkDeviceSize heapSize = m_memProps.memoryHeaps[i].size; diff --git a/src/dxvk/dxvk_memory.h b/src/dxvk/dxvk_memory.h index 061aaa0d..5dfbf996 100644 --- a/src/dxvk/dxvk_memory.h +++ b/src/dxvk/dxvk_memory.h @@ -265,7 +265,6 @@ namespace dxvk { const DxvkDevice* m_device; const VkPhysicalDeviceProperties m_devProps; const VkPhysicalDeviceMemoryProperties m_memProps; - const bool m_allowOvercommit; std::mutex m_mutex; std::array m_memHeaps; diff --git a/src/dxvk/dxvk_options.cpp b/src/dxvk/dxvk_options.cpp index 15c60c03..e1da8a48 100644 --- a/src/dxvk/dxvk_options.cpp +++ b/src/dxvk/dxvk_options.cpp @@ -3,7 +3,6 @@ namespace dxvk { DxvkOptions::DxvkOptions(const Config& config) { - allowMemoryOvercommit = config.getOption ("dxvk.allowMemoryOvercommit", false); enableStateCache = config.getOption ("dxvk.enableStateCache", true); numCompilerThreads = config.getOption ("dxvk.numCompilerThreads", 0); useRawSsbo = config.getOption("dxvk.useRawSsbo", Tristate::Auto); diff --git a/src/dxvk/dxvk_options.h b/src/dxvk/dxvk_options.h index f29e9fc7..79259875 100644 --- a/src/dxvk/dxvk_options.h +++ b/src/dxvk/dxvk_options.h @@ -8,10 +8,6 @@ namespace dxvk { DxvkOptions() { } DxvkOptions(const Config& config); - /// Allow allocating more memory from - /// a heap than the device supports. - bool allowMemoryOvercommit; - /// Enable state cache bool enableStateCache;