Use hwInfo from root device environment [4/N]

Related-To: NEO-3857

Change-Id: I50003aa1cf2c866827e98fa69212e11d190fda36
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
Lukasz Jobczyk
2020-03-03 09:21:18 +01:00
committed by sys_ocldev
parent 6df36e5667
commit a1c6b0f4a7
18 changed files with 41 additions and 41 deletions

View File

@@ -41,7 +41,7 @@ class WddmPreemptionTests : public Test<WddmFixtureWithMockGdiDll> {
regReader->forceRetValue = forceReturnPreemptionRegKeyValue;
auto preemptionMode = PreemptionHelper::getDefaultPreemptionMode(hwInfoTest);
wddm->init();
auto hwInfo = executionEnvironment->getHardwareInfo();
auto hwInfo = executionEnvironment->rootDeviceEnvironments[0]->getHardwareInfo();
auto engine = HwHelper::get(platformDevices[0]->platform.eRenderCoreFamily).getGpgpuEngineInstances(*hwInfo)[0];
osContext = std::make_unique<OsContextWin>(*wddm, 0u, 1, engine, preemptionMode, false);
}