Move hwInfo to root device environment

Related-To: NEO-3857

Change-Id: Ic23077cad080a249457cec39462ca7407e75b227
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2020-03-04 08:51:02 +01:00
committed by sys_ocldev
parent ac0edb9a5d
commit e9c576393e
71 changed files with 373 additions and 277 deletions

View File

@ -468,8 +468,8 @@ class CommandStreamReceiverMock : public CommandStreamReceiver {
CommandStreamReceiverMock() : BaseClass(*(new ExecutionEnvironment), 0) {
this->mockExecutionEnvironment.reset(&this->executionEnvironment);
executionEnvironment.setHwInfo(platformDevices[0]);
executionEnvironment.prepareRootDeviceEnvironments(1);
executionEnvironment.rootDeviceEnvironments[0]->setHwInfo(platformDevices[0]);
executionEnvironment.initializeMemoryManager();
}
@ -2676,7 +2676,7 @@ TEST(KernelTest, givenFtrRenderCompressedBuffersWhenInitializingArgsWithNonState
DebugManagerStateRestore restore;
DebugManager.flags.DisableAuxTranslation.set(false);
auto device = std::make_unique<MockClDevice>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr));
auto hwInfo = device->getExecutionEnvironment()->getMutableHardwareInfo();
auto hwInfo = device->getRootDeviceEnvironment().getMutableHardwareInfo();
auto &capabilityTable = hwInfo->capabilityTable;
auto context = clUniquePtr(new MockContext(device.get()));
context->contextType = ContextType::CONTEXT_TYPE_UNRESTRICTIVE;