[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
1 changed files with 7 additions and 3 deletions

View File

@ -288,9 +288,13 @@ namespace dxvk {
result = this->tryAlloc(req, flags & ~VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT);
if (result.memory() == VK_NULL_HANDLE) {
throw DxvkError(str::format(
"DxvkMemoryAllocator: Failed to allocate ",
req.size, " bytes"));
Logger::err(str::format(
"DxvkMemoryAllocator: Memory allocation failed",
"\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;