Do not initiate limited range allocator if range above max64 bit address.

Change-Id: If7b0a83c5e5326f2b16d32533d8631ff6ff877cc
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-06-26 09:56:24 +02:00
committed by sys_ocldev
parent 1bc5f7b142
commit 840d81c9fc
3 changed files with 18 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ DrmMemoryManager::~DrmMemoryManager() {
}
void DrmMemoryManager::initInternalRangeAllocator(size_t gpuRange) {
if (gpuRange < MemoryConstants::max48BitAddress || !DebugManager.flags.EnableHostPtrTracking.get()) {
if (gpuRange < MemoryConstants::max64BitAppAddress || !DebugManager.flags.EnableHostPtrTracking.get()) {
// set the allocator with the whole reduced address space range - pageSize (base address) to
// avoid starting address of the heap to be 0, which could be interpreted as invalid address
// nullPtr.