Add root CSR to engine groups

Signed-off-by: Maciej Dziuban <maciej.dziuban@intel.com>
Related-To: NEO-5120
This commit is contained in:
Maciej Dziuban
2020-12-30 13:36:22 +00:00
committed by Compute-Runtime-Automation
parent 55f3c8f134
commit ebbd042f1c
6 changed files with 33 additions and 24 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2020 Intel Corporation
* Copyright (C) 2017-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -31,6 +31,7 @@ MockDevice::MockDevice()
this->executionEnvironment->memoryManager = std::move(this->mockMemoryManager);
this->engines.resize(1);
this->engines[0] = {commandStreamReceiver, nullptr};
this->engineGroups.resize(static_cast<uint32_t>(EngineGroupType::MaxEngineGroups));
initializeCaps();
}
@@ -45,6 +46,7 @@ MockDevice::MockDevice(ExecutionEnvironment *executionEnvironment, uint32_t root
bool aubUsage = (testMode == TestMode::AubTests) || (testMode == TestMode::AubTestsWithTbx);
this->mockMemoryManager.reset(new MemoryManagerCreate<OsAgnosticMemoryManager>(false, enableLocalMemory, aubUsage, *executionEnvironment));
this->osTime = MockOSTime::create();
this->engineGroups.resize(static_cast<uint32_t>(EngineGroupType::MaxEngineGroups));
executionEnvironment->rootDeviceEnvironments[rootDeviceIndex]->setHwInfo(&hwInfo);
executionEnvironment->initializeMemoryManager();
initializeCaps();