mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-19 05:52:11 +01:00
[dxvk] Don't enforce HOST_CACHED flag when allocating memory
The better fix would be to support non-coherent memory properly, but this will have to do for now. Fixes #947.
This commit is contained in:
parent
c35af973bb
commit
f272071d8d
@ -186,10 +186,13 @@ namespace dxvk {
|
||||
float priority) {
|
||||
std::lock_guard<std::mutex> lock(m_mutex);
|
||||
|
||||
VkMemoryPropertyFlags optFlags = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT
|
||||
| VK_MEMORY_PROPERTY_HOST_CACHED_BIT;
|
||||
|
||||
DxvkMemory result = this->tryAlloc(req, dedAllocInfo, flags, priority);
|
||||
|
||||
if (!result && (flags & VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT))
|
||||
result = this->tryAlloc(req, dedAllocInfo, flags & ~VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, priority);
|
||||
if (!result && (flags & optFlags))
|
||||
result = this->tryAlloc(req, dedAllocInfo, flags & ~optFlags, priority);
|
||||
|
||||
if (!result) {
|
||||
Logger::err(str::format(
|
||||
|
Loading…
x
Reference in New Issue
Block a user