[Memory] Preallocate whole physical range for GPU.

Seems like GPU has direct access to whole RAM and can request anything.

Removed check for page access as all pages are now available for gpu
This commit is contained in:
Gliniak
2024-09-01 22:21:28 +02:00
parent ed843f35f8
commit 5f5be06680
3 changed files with 24 additions and 29 deletions

View File

@@ -451,6 +451,8 @@ uint32_t xeMmAllocatePhysicalMemoryEx(uint32_t flags, uint32_t region_size,
adjusted_alignment, allocation_type, protect, top_down,
&base_address)) {
// Failed - assume no memory available.
XELOGW("MmAllocatePhysicalMemoryEx: Allocation failed: {:08X} Size: {:08X}",
base_address, adjusted_size);
return 0;
}
XELOGD("MmAllocatePhysicalMemoryEx = {:08X} Size: {:08X}", base_address,