Revert "host_memory: Allocate virtual_base with MAP_NORESERVE"
This reverts commit 4d7be85e73
.
Fix VK_ERROR_OUT_OF_DEVICE_MEMORY
This commit is contained in:
parent
bd5ae33153
commit
16a6a67e34
1 changed files with 1 additions and 1 deletions
|
@ -416,7 +416,7 @@ public:
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
virtual_base = static_cast<u8*>(mmap(nullptr, virtual_size, PROT_NONE,
|
virtual_base = static_cast<u8*>(mmap(nullptr, virtual_size, PROT_NONE,
|
||||||
MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0));
|
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0));
|
||||||
if (virtual_base == MAP_FAILED) {
|
if (virtual_base == MAP_FAILED) {
|
||||||
LOG_CRITICAL(HW_Memory, "mmap failed: {}", strerror(errno));
|
LOG_CRITICAL(HW_Memory, "mmap failed: {}", strerror(errno));
|
||||||
throw std::bad_alloc{};
|
throw std::bad_alloc{};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue