mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[dxvk] Store AMD overalloc info in DxvkDeviceFeatures
This commit is contained in:
parent
c707d9026f
commit
33981e6a21
2 changed files with 4 additions and 3 deletions
|
@ -453,8 +453,8 @@ namespace dxvk {
|
||||||
this->logFeatures(enabledFeatures);
|
this->logFeatures(enabledFeatures);
|
||||||
|
|
||||||
// Report the desired overallocation behaviour to the driver
|
// Report the desired overallocation behaviour to the driver
|
||||||
VkDeviceMemoryOverallocationCreateInfoAMD overallocInfo = { VK_STRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD };
|
enabledFeatures.amdOverallocation = { VK_STRUCTURE_TYPE_DEVICE_MEMORY_OVERALLOCATION_CREATE_INFO_AMD };
|
||||||
overallocInfo.overallocationBehavior = VK_MEMORY_OVERALLOCATION_BEHAVIOR_ALLOWED_AMD;
|
enabledFeatures.amdOverallocation.overallocationBehavior = VK_MEMORY_OVERALLOCATION_BEHAVIOR_ALLOWED_AMD;
|
||||||
|
|
||||||
// Create the requested queues
|
// Create the requested queues
|
||||||
float queuePriority = 1.0f;
|
float queuePriority = 1.0f;
|
||||||
|
@ -487,7 +487,7 @@ namespace dxvk {
|
||||||
info.pEnabledFeatures = &enabledFeatures.core.features;
|
info.pEnabledFeatures = &enabledFeatures.core.features;
|
||||||
|
|
||||||
if (devExtensions.amdMemoryOverallocationBehaviour)
|
if (devExtensions.amdMemoryOverallocationBehaviour)
|
||||||
overallocInfo.pNext = std::exchange(info.pNext, &overallocInfo);
|
enabledFeatures.amdOverallocation.pNext = std::exchange(info.pNext, &enabledFeatures.amdOverallocation);
|
||||||
|
|
||||||
VkDevice device = VK_NULL_HANDLE;
|
VkDevice device = VK_NULL_HANDLE;
|
||||||
VkResult vr = m_vki->vkCreateDevice(m_handle, &info, nullptr, &device);
|
VkResult vr = m_vki->vkCreateDevice(m_handle, &info, nullptr, &device);
|
||||||
|
|
|
@ -77,6 +77,7 @@ namespace dxvk {
|
||||||
VkBool32 nvxBinaryImport;
|
VkBool32 nvxBinaryImport;
|
||||||
VkBool32 nvxImageViewHandle;
|
VkBool32 nvxImageViewHandle;
|
||||||
VkBool32 khrWin32KeyedMutex;
|
VkBool32 khrWin32KeyedMutex;
|
||||||
|
VkDeviceMemoryOverallocationCreateInfoAMD amdOverallocation;
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue