Commit Graph

11 Commits (41aec2773f382ac4ff27daee5401b78f7669190d)

Author SHA1 Message Date
ameerj 41aec2773f general: Add missing copyright notices 3 years ago
Andrew Strelsky 3fc7aceea7
Fixed invalid iterator usage 4 years ago
Jan Beich 353be2306c host_memory: Add workaround for FreeBSD 12
src/common/host_memory.cpp:360:14: error: use of undeclared identifier
      'memfd_create'
        fd = memfd_create("HostMemory", 0);
             ^
4 years ago
Jan Beich c4cd82fa7c host_memory: Enable Linux implementation on FreeBSD
HW.Memory <Critical> common/host_memory.cpp:HostMemory:492: Fastmem unavailable, falling back to VirtualBuffer for memory allocation
4 years ago
lat9nq 9a06b85b24 host_memory: Correct MEM_RESERVE_PLACEHOLDER
Microsoft defines `MEM_RESERVE_PLACEHOLDER` as `0x00040000`, but our
manually imported version of it drops the last zero.
4 years ago
Markus Wick 7f85abb281 common/host_memory: Implement a fallback if fastmem fails.
This falls back to the old approach of using a virtual buffer.

Windows is untested, but this build should fix support for Windows < 10 v1803. However without fastmem support at all.
4 years ago
ReinUsesLisp f332d4a9b5 common/host_shader: Load Windows 10 functions dynamically
Workaround old headers and libraries shipped on MinGW.
4 years ago
ReinUsesLisp ee67460ff0 host_memory: Support staged VirtualProtect calls 4 years ago
Markus Wick c4609c92ee common/host_memory: Optimize for huge tables.
In theory, if we have 2 MB continously mapped, this should save one layer of TLB.
Let's make it at least more likely by aligning the memory.
4 years ago
Markus Wick 5105318bbc common/host_memory: Add Linux implementation 4 years ago
ReinUsesLisp a7837a3791 common/host_memory: Add interface and Windows implementation 4 years ago