1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[dxvk] Improved memory allocation debug output

This commit is contained in:
Philip Rebohle 2018-04-14 13:03:14 +02:00
parent 8d3e60c2f1
commit 320cebb8f9
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -288,9 +288,13 @@ namespace dxvk {
result = this->tryAlloc(req, flags & ~VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT); result = this->tryAlloc(req, flags & ~VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT);
if (result.memory() == VK_NULL_HANDLE) { if (result.memory() == VK_NULL_HANDLE) {
throw DxvkError(str::format( Logger::err(str::format(
"DxvkMemoryAllocator: Failed to allocate ", "DxvkMemoryAllocator: Memory allocation failed",
req.size, " bytes")); "\n Size: ", req.size,
"\n Alignment: ", req.alignment,
"\n Mem flags: ", "0x", std::hex, flags,
"\n Mem types: ", "0x", std::hex, req.memoryTypeBits));
throw DxvkError("DxvkMemoryAllocator: Memory allocation failed");
} }
return result; return result;