Add localMemorySupported member to MemoryManager

- extend constructor to take new flag
- extend ExecutionEnvironment createMemoryManager with new flag
- only OsAgnosticMemoryManager changes in this step

Change-Id: I1dae4fd79fe28fd87e42b237600dc216c94b597e
This commit is contained in:
Hoppe, Mateusz
2018-09-06 10:53:35 +02:00
committed by sys_ocldev
parent 05b93ef221
commit cfa8035836
39 changed files with 96 additions and 87 deletions

View File

@@ -129,7 +129,7 @@ bool Device::createDeviceImpl(const HardwareInfo *pHwInfo, Device &outDevice) {
if (!executionEnvironment->initializeCommandStreamReceiver(pHwInfo)) {
return false;
}
executionEnvironment->initializeMemoryManager(outDevice.getEnabled64kbPages());
executionEnvironment->initializeMemoryManager(outDevice.getEnabled64kbPages(), outDevice.getHardwareCapabilities().localMemorySupported);
outDevice.osContext = new OsContext(executionEnvironment->osInterface.get());
executionEnvironment->memoryManager->registerOsContext(outDevice.osContext);