Reverse logic of creating Memory Manager - part 2

-remove MM initialization from Device::CreateEngines method

Change-Id: Iaee268b002cb0f0a4edd07907c12da6dd6076b3a
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2019-03-08 12:18:02 +01:00
parent 8e49c8f67a
commit 4386d10e40
9 changed files with 31 additions and 19 deletions

View File

@@ -8,7 +8,6 @@
#include "unit_tests/mocks/mock_device.h"
#include "runtime/device/driver_info.h"
#include "runtime/helpers/hw_helper.h"
#include "runtime/os_interface/os_context.h"
#include "unit_tests/mocks/mock_memory_manager.h"
#include "unit_tests/mocks/mock_ostime.h"
@@ -33,6 +32,7 @@ MockDevice::MockDevice(const HardwareInfo &hwInfo, ExecutionEnvironment *executi
this->mockMemoryManager.reset(new OsAgnosticMemoryManager(false, enableLocalMemory, aubUsage, *executionEnvironment));
this->osTime = MockOSTime::create();
mockWaTable = *hwInfo.pWaTable;
executionEnvironment->initializeMemoryManager(getEnabled64kbPages(hwInfo), enableLocalMemory);
}
void MockDevice::setOSTime(OSTime *osTime) {