Drm create context with an implicit virtual memory address space

Related-To: NEO-4821

Change-Id: I18545d976788daacbb195e243f4049b7f83fd3a2
This commit is contained in:
Slawomir Milczarek
2020-07-14 04:36:16 +02:00
committed by sys_ocldev
parent 031ee61b5a
commit 3c4c7a0215
5 changed files with 34 additions and 11 deletions

View File

@@ -103,7 +103,9 @@ Drm *Drm::create(std::unique_ptr<HwDeviceId> hwDeviceId, RootDeviceEnvironment &
}
}
drmObject->createVirtualMemoryAddressSpace(HwHelper::getSubDevicesCount(rootDeviceEnvironment.getHardwareInfo()));
if (!drmObject->createVirtualMemoryAddressSpace(HwHelper::getSubDevicesCount(rootDeviceEnvironment.getHardwareInfo()))) {
printDebugString(DebugManager.flags.PrintDebugMessages.get(), stderr, "%s", "INFO: Device doesn't support GEM Virtual Memory\n");
}
return drmObject.release();
}