Decouple memory manager and device

Change-Id: Ia64cc955e1d290cad4c50b6a2a41052d9acf0eec
This commit is contained in:
Stefanowski, Adam
2018-08-16 11:18:05 +02:00
committed by sys_ocldev
parent a30d6d66ca
commit 1ad70dfebe
19 changed files with 106 additions and 105 deletions

View File

@@ -166,7 +166,6 @@ bool Device::createDeviceImpl(const HardwareInfo *pHwInfo, Device &outDevice) {
}
outDevice.executionEnvironment->memoryManager->setForce32BitAllocations(pDevice->getDeviceInfo().force32BitAddressess);
outDevice.executionEnvironment->memoryManager->device = pDevice;
if (pDevice->preemptionMode == PreemptionMode::MidThread || pDevice->isSourceLevelDebuggerActive()) {
size_t requiredSize = pHwInfo->capabilityTable.requiredPreemptionSurfaceSize;