memory: separate extended allocations from ordinary guest mappings

This commit is contained in:
nmzik committed 2026-09-28 18:01:49 +04:00
1 parent ab2c1c4c03
commit c91fe80d64
5 files changed
+90 -55

No files matched your search

+1 -2
View File
@@ -78,8 +78,7 @@ static Graphics::RenderContext& GetGpuResources() {
}
static bool IsGpuAddressRange(uint64_t vaddr, uint64_t size) {
constexpr uint64_t GPU_ADDRESS_LIMIT = 1ull << 40u;
return vaddr != 0 && size != 0 && vaddr < GPU_ADDRESS_LIMIT && size < GPU_ADDRESS_LIMIT - vaddr;
return Graphics::GuestRange {vaddr, size}.Valid();
}
static void MapGpuRange(uint64_t vaddr, uint64_t size) {