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

@@ -344,11 +344,11 @@ int main(int argc, char **argv) {
}
TEST_F(DrmTests, whenCreateDrmIsCalledThenProperHwInfoIsSetup) {
auto oldHwInfo = executionEnvironment.getMutableHardwareInfo();
auto oldHwInfo = rootDeviceEnvironment->getMutableHardwareInfo();
*oldHwInfo = {};
auto drm = DrmWrap::createDrm(*rootDeviceEnvironment);
EXPECT_NE(drm, nullptr);
auto currentHwInfo = executionEnvironment.getHardwareInfo();
auto currentHwInfo = rootDeviceEnvironment->getHardwareInfo();
EXPECT_NE(IGFX_UNKNOWN, currentHwInfo->platform.eProductFamily);
EXPECT_NE(IGFX_UNKNOWN_CORE, currentHwInfo->platform.eRenderCoreFamily);
EXPECT_LT(0u, currentHwInfo->gtSystemInfo.EUCount);