[dxvk] Remove dxvk.allowMemoryOvercommit option

The default behaviour is now to allow overallocation by default,
which makes sense especially when VK_EXT_memory_priority is used.

Does not seem to affect Nvidia drivers.
This commit is contained in:
Philip Rebohle 2019-01-30 13:31:40 +01:00
parent dfa8524e73
commit b76f470c5f
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
5 changed files with 2 additions and 12 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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<DxvkMemoryHeap, VK_MAX_MEMORY_HEAPS> m_memHeaps;

View File

@ -3,7 +3,6 @@
namespace dxvk {
DxvkOptions::DxvkOptions(const Config& config) {
allowMemoryOvercommit = config.getOption<bool> ("dxvk.allowMemoryOvercommit", false);
enableStateCache = config.getOption<bool> ("dxvk.enableStateCache", true);
numCompilerThreads = config.getOption<int32_t> ("dxvk.numCompilerThreads", 0);
useRawSsbo = config.getOption<Tristate>("dxvk.useRawSsbo", Tristate::Auto);

View File

@ -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;